]> git.proxmox.com Git - rustc.git/blob - src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / builtin-superkinds / builtin-superkinds-double-superkind.stderr
1 error[E0277]: `T` cannot be sent between threads safely
2 --> $DIR/builtin-superkinds-double-superkind.rs:6:24
3 |
4 LL | trait Foo : Send+Sync { }
5 | ---- required by this bound in `Foo`
6 LL |
7 LL | impl <T: Sync+'static> Foo for (T,) { }
8 | ^^^ `T` cannot be sent between threads safely
9 |
10 = note: required because it appears within the type `(T,)`
11 help: consider further restricting this bound
12 |
13 LL | impl <T: Sync+'static + Send> Foo for (T,) { }
14 | ^^^^^^
15
16 error[E0277]: `T` cannot be shared between threads safely
17 --> $DIR/builtin-superkinds-double-superkind.rs:9:16
18 |
19 LL | trait Foo : Send+Sync { }
20 | ---- required by this bound in `Foo`
21 ...
22 LL | impl <T: Send> Foo for (T,T) { }
23 | ^^^ `T` cannot be shared between threads safely
24 |
25 = note: required because it appears within the type `(T, T)`
26 help: consider further restricting this bound
27 |
28 LL | impl <T: Send + Sync> Foo for (T,T) { }
29 | ^^^^^^
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0277`.