fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: `T` cannot be shared between threads safely 2 --> $DIR/two-traits.rs:11:14 3 | 4LL | type X = Self; 5 | ^^^^ `T` cannot be shared between threads safely 6 | 7note: required by a bound in `Magic::X` 8 --> $DIR/two-traits.rs:8:13 9 | 10LL | type X: Trait; 11 | ^^^^^ required by this bound in `Magic::X` 12help: consider further restricting this bound 13 | 14LL | impl<T: Magic + std::marker::Sync> Magic for T { 15 | +++++++++++++++++++ 16 17error[E0275]: overflow evaluating the requirement `*mut (): Magic` 18 --> $DIR/two-traits.rs:20:5 19 | 20LL | wizard::<*mut ()>(); 21 | ^^^^^^^^^^^^^^^^^ 22 | 23note: required by a bound in `wizard` 24 --> $DIR/two-traits.rs:17:14 25 | 26LL | fn wizard<T: Magic>() { check::<<T as Magic>::X>(); } 27 | ^^^^^ required by this bound in `wizard` 28 29error: aborting due to 2 previous errors 30 31Some errors have detailed explanations: E0275, E0277. 32For more information about an error, try `rustc --explain E0275`.