summaryrefslogtreecommitdiffstats
path: root/tests/ui/builtin-superkinds/builtin-superkinds-typaram-not-send.stderr
blob: 4a25c42b5835d1a21465cc8addd9db19066cf5e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0277]: `T` cannot be sent between threads safely
  --> $DIR/builtin-superkinds-typaram-not-send.rs:5:32
   |
LL | impl <T: Sync+'static> Foo for T { }
   |                                ^ `T` cannot be sent between threads safely
   |
note: required by a bound in `Foo`
  --> $DIR/builtin-superkinds-typaram-not-send.rs:3:13
   |
LL | trait Foo : Send { }
   |             ^^^^ required by this bound in `Foo`
help: consider further restricting this bound
   |
LL | impl <T: Sync+'static + std::marker::Send> Foo for T { }
   |                       +++++++++++++++++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.