]> git.lizzy.rs Git - rust.git/blob - tests/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / 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:32
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`.