]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.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    = help: consider using `min_specialization` instead, which is more stable and complete
10
11 error[E0391]: cycle detected when building specialization graph of trait `Trait`
12   --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
13    |
14 LL | trait Trait<T> { type Assoc; }
15    | ^^^^^^^^^^^^^^
16    |
17    = note: ...which immediately requires building specialization graph of trait `Trait` again
18 note: cycle used when coherence checking all impls of trait `Trait`
19   --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1
20    |
21 LL | trait Trait<T> { type Assoc; }
22    | ^^^^^^^^^^^^^^
23
24 error: aborting due to previous error; 1 warning emitted
25
26 For more information about this error, try `rustc --explain E0391`.