os-rust/src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr

34 lines
1.2 KiB
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0277]: `T` cannot be sent between threads safely
2018-12-25 08:56:47 -07:00
--> $DIR/builtin-superkinds-double-superkind.rs:6:24
2018-08-08 14:28:26 +02:00
|
LL | trait Foo : Send+Sync { }
| ---- required by this bound in `Foo`
LL |
2018-08-08 14:28:26 +02:00
LL | impl <T: Sync+'static> Foo for (T,) { }
| ^^^ `T` cannot be sent between threads safely
2018-08-08 14:28:26 +02:00
|
= note: required because it appears within the type `(T,)`
help: consider further restricting this bound
|
LL | impl <T: Sync+'static + std::marker::Send> Foo for (T,) { }
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error[E0277]: `T` cannot be shared between threads safely
2018-12-25 08:56:47 -07:00
--> $DIR/builtin-superkinds-double-superkind.rs:9:16
2018-08-08 14:28:26 +02:00
|
LL | trait Foo : Send+Sync { }
| ---- required by this bound in `Foo`
...
2018-08-08 14:28:26 +02:00
LL | impl <T: Send> Foo for (T,T) { }
| ^^^ `T` cannot be shared between threads safely
2018-08-08 14:28:26 +02:00
|
= note: required because it appears within the type `(T, T)`
help: consider further restricting this bound
|
LL | impl <T: Send + std::marker::Sync> Foo for (T,T) { }
| ^^^^^^^^^^^^^^^^^^^
2018-08-08 14:28:26 +02:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.