2020-06-27 21:36:35 +01:00
|
|
|
error[E0277]: `T` cannot be shared between threads safely
|
|
|
|
--> $DIR/traits-inductive-overflow-two-traits.rs:11:5
|
|
|
|
|
|
|
|
|
LL | type X: Trait;
|
|
|
|
| ----- required by this bound in `Magic::X`
|
|
|
|
...
|
|
|
|
LL | type X = Self;
|
|
|
|
| ^^^^^^^^^^^^^^ `T` cannot be shared between threads safely
|
|
|
|
|
|
|
|
|
help: consider further restricting this bound
|
|
|
|
|
|
|
|
|
LL | impl<T: Magic + std::marker::Sync> Magic for T {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-08-08 14:28:26 +02:00
|
|
|
error[E0275]: overflow evaluating the requirement `*mut (): Magic`
|
2020-06-27 21:36:35 +01:00
|
|
|
--> $DIR/traits-inductive-overflow-two-traits.rs:20:5
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | fn wizard<T: Magic>() { check::<<T as Magic>::X>(); }
|
2020-04-05 22:15:06 -07:00
|
|
|
| ----- required by this bound in `wizard`
|
2019-08-24 14:44:43 -07:00
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | wizard::<*mut ()>();
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-06-27 21:36:35 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-06-27 21:36:35 +01:00
|
|
|
Some errors have detailed explanations: E0275, E0277.
|
|
|
|
For more information about an error, try `rustc --explain E0275`.
|