]> git.lizzy.rs Git - rust.git/blob - src/test/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / builtin-superkinds / builtin-superkinds-typaram-not-send.stderr
1 error[E0277]: `T` cannot be sent between threads safely
2   --> $DIR/builtin-superkinds-typaram-not-send.rs:5:24
3    |
4 LL | impl <T: Sync+'static> Foo for T { }
5    |                        ^^^ `T` cannot be sent between threads safely
6    |
7 note: required by a bound in `Foo`
8   --> $DIR/builtin-superkinds-typaram-not-send.rs:3:13
9    |
10 LL | trait Foo : Send { }
11    |             ^^^^ required by this bound in `Foo`
12 help: consider further restricting this bound
13    |
14 LL | impl <T: Sync+'static + std::marker::Send> Foo for T { }
15    |                       +++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.