]> git.lizzy.rs Git - rust.git/blob - tests/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr
Auto merge of #100178 - mati865:upgrade-mingw-w64-on-CI, r=nikic
[rust.git] / tests / 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:32
3    |
4 LL | impl <T: Sync+'static> Foo for (T,) { }
5    |                                ^^^^ `T` cannot be sent between threads safely
6    |
7    = note: required because it appears within the type `(T,)`
8 note: required by a bound in `Foo`
9   --> $DIR/builtin-superkinds-double-superkind.rs:4:13
10    |
11 LL | trait Foo : Send+Sync { }
12    |             ^^^^ required by this bound in `Foo`
13 help: consider further restricting this bound
14    |
15 LL | impl <T: Sync+'static + std::marker::Send> Foo for (T,) { }
16    |                       +++++++++++++++++++
17
18 error[E0277]: `T` cannot be shared between threads safely
19   --> $DIR/builtin-superkinds-double-superkind.rs:9:24
20    |
21 LL | impl <T: Send> Foo for (T,T) { }
22    |                        ^^^^^ `T` cannot be shared between threads safely
23    |
24    = note: required because it appears within the type `(T, T)`
25 note: required by a bound in `Foo`
26   --> $DIR/builtin-superkinds-double-superkind.rs:4:18
27    |
28 LL | trait Foo : Send+Sync { }
29    |                  ^^^^ required by this bound in `Foo`
30 help: consider further restricting this bound
31    |
32 LL | impl <T: Send + std::marker::Sync> Foo for (T,T) { }
33    |               +++++++++++++++++++
34
35 error: aborting due to 2 previous errors
36
37 For more information about this error, try `rustc --explain E0277`.