]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-inherited-assoc-ty-cycle-err.stderr
CommitLineData
f035d41b
XL
1warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:6:12
3 |
4LL | #![feature(specialization)]
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9
74b04a01 10error[E0391]: cycle detected when building specialization graph of trait `Trait`
f035d41b 11 --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
b7449926
XL
12 |
13LL | trait Trait<T> { type Assoc; }
14 | ^^^^^^^^^^^^^^
15 |
74b04a01 16 = note: ...which again requires building specialization graph of trait `Trait`, completing the cycle
b7449926 17note: cycle used when coherence checking all impls of trait `Trait`
f035d41b 18 --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
b7449926
XL
19 |
20LL | trait Trait<T> { type Assoc; }
21 | ^^^^^^^^^^^^^^
22
f035d41b 23error: aborting due to previous error; 1 warning emitted
b7449926
XL
24
25For more information about this error, try `rustc --explain E0391`.