1 error[E0277]: `Rc<u32>` cannot be sent between threads safely
2 --> $DIR/auto-trait-leakage2.rs:17:5
4 LL | type Foo = impl std::fmt::Debug;
5 | -------------------- within this `impl Debug`
7 LL | is_send(m::foo());
8 | ^^^^^^^ `Rc<u32>` cannot be sent between threads safely
10 = help: within `impl Debug`, the trait `Send` is not implemented for `Rc<u32>`
11 = note: required because it appears within the type `impl Debug`
12 note: required by a bound in `is_send`
13 --> $DIR/auto-trait-leakage2.rs:14:15
15 LL | fn is_send<T: Send>(_: T) {}
16 | ^^^^ required by this bound in `is_send`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0277`.