diff options
| author | Ralf Jung <post@ralfj.de> | 2020-06-16 10:06:35 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-06-16 11:56:54 +0200 |
| commit | 991dfe75950ea4f3f01f2351c4d5ed4dc5b95152 (patch) | |
| tree | 7ec6d523b6d6de8f7f944be6ede783185f119255 /src/test/ui/coherence | |
| parent | 5fbef22a443e42f8661c9e88426ac80b9bc49674 (diff) | |
| download | rust-991dfe75950ea4f3f01f2351c4d5ed4dc5b95152.tar.gz rust-991dfe75950ea4f3f01f2351c4d5ed4dc5b95152.zip | |
bless all
Diffstat (limited to 'src/test/ui/coherence')
| -rw-r--r-- | src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr | 15 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs b/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs index 7f0e5472c3c..d74d3a2a523 100644 --- a/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs +++ b/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.rs @@ -4,6 +4,7 @@ // // No we expect to run into a more user-friendly cycle error instead. #![feature(specialization)] +//~^ WARN the feature `specialization` is incomplete trait Trait<T> { type Assoc; } //~^ ERROR E0391 diff --git a/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr b/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr index 71f997c54c6..7e140480b77 100644 --- a/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr +++ b/src/test/ui/coherence/coherence-inherited-assoc-ty-cycle-err.stderr @@ -1,16 +1,25 @@ +warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes + --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:6:12 + | +LL | #![feature(specialization)] + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(incomplete_features)]` on by default + = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information + error[E0391]: cycle detected when building specialization graph of trait `Trait` - --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:8:1 + --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1 | LL | trait Trait<T> { type Assoc; } | ^^^^^^^^^^^^^^ | = note: ...which again requires building specialization graph of trait `Trait`, completing the cycle note: cycle used when coherence checking all impls of trait `Trait` - --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:8:1 + --> $DIR/coherence-inherited-assoc-ty-cycle-err.rs:9:1 | LL | trait Trait<T> { type Assoc; } | ^^^^^^^^^^^^^^ -error: aborting due to previous error +error: aborting due to previous error; 1 warning emitted For more information about this error, try `rustc --explain E0391`. |
