]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/auto-trait-leakage2.stderr
Rollup merge of #107078 - ehuss:invalid_doc_attributes-docs, r=jackh726
[rust.git] / tests / ui / type-alias-impl-trait / auto-trait-leakage2.stderr
1 error[E0277]: `Rc<u32>` cannot be sent between threads safely
2   --> $DIR/auto-trait-leakage2.rs:21:13
3    |
4 LL |     type Foo = impl std::fmt::Debug;
5    |                -------------------- within this `Foo`
6 ...
7 LL |     is_send(m::foo());
8    |     ------- ^^^^^^^^ `Rc<u32>` cannot be sent between threads safely
9    |     |
10    |     required by a bound introduced by this call
11    |
12    = help: within `Foo`, the trait `Send` is not implemented for `Rc<u32>`
13 note: required because it appears within the type `Foo`
14   --> $DIR/auto-trait-leakage2.rs:7:16
15    |
16 LL |     type Foo = impl std::fmt::Debug;
17    |                ^^^^^^^^^^^^^^^^^^^^
18 note: required by a bound in `is_send`
19   --> $DIR/auto-trait-leakage2.rs:16:15
20    |
21 LL | fn is_send<T: Send>(_: T) {}
22    |               ^^^^ required by this bound in `is_send`
23
24 error: aborting due to previous error
25
26 For more information about this error, try `rustc --explain E0277`.