]> git.proxmox.com Git - rustc.git/blob - 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
1 warning: 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 |
4 LL | #![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
10 error[E0391]: cycle detected when building specialization graph of trait `Trait`
11 --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
12 |
13 LL | trait Trait<T> { type Assoc; }
14 | ^^^^^^^^^^^^^^
15 |
16 = note: ...which again requires building specialization graph of trait `Trait`, completing the cycle
17 note: cycle used when coherence checking all impls of trait `Trait`
18 --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
19 |
20 LL | trait Trait<T> { type Assoc; }
21 | ^^^^^^^^^^^^^^
22
23 error: aborting due to previous error; 1 warning emitted
24
25 For more information about this error, try `rustc --explain E0391`.