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