]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/inductive-overflow/two-traits.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / traits / inductive-overflow / two-traits.stderr
CommitLineData
29967ef6 1error[E0277]: `T` cannot be shared between threads safely
a2a8927a 2 --> $DIR/two-traits.rs:11:14
29967ef6 3 |
29967ef6 4LL | type X = Self;
a2a8927a 5 | ^^^^ `T` cannot be shared between threads safely
29967ef6 6 |
94222f64
XL
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`
29967ef6
XL
12help: consider further restricting this bound
13 |
cdc7bbd5 14LL | impl<T: Magic + std::marker::Sync> Magic for T {
94222f64 15 | +++++++++++++++++++
29967ef6 16
b7449926 17error[E0275]: overflow evaluating the requirement `*mut (): Magic`
6a06907d 18 --> $DIR/two-traits.rs:20:5
b7449926 19 |
532ac7d7 20LL | wizard::<*mut ()>();
b7449926 21 | ^^^^^^^^^^^^^^^^^
94222f64
XL
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`
b7449926 28
29967ef6 29error: aborting due to 2 previous errors
b7449926 30
29967ef6
XL
31Some errors have detailed explanations: E0275, E0277.
32For more information about an error, try `rustc --explain E0275`.