diff --git a/tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.rs b/tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.rs index 019765a1909f..960e19c21a2c 100644 --- a/tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.rs +++ b/tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.rs @@ -1,6 +1,6 @@ //@ compile-flags: -Znext-solver=globally #![feature(inherent_associated_types)] -//~^ WARN the feature `inherent_associated_types` is incomplete +#![expect(incomplete_features)] // Regression test for https://github.com/rust-lang/rust/issues/153539: diff --git a/tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.stderr b/tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.stderr index 66ca01e845f3..74d88889223f 100644 --- a/tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.stderr +++ b/tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.stderr @@ -1,12 +1,3 @@ -warning: the feature `inherent_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes - --> $DIR/inherent-assoc-ty-mismatch-issue-153539.rs:2:12 - | -LL | #![feature(inherent_associated_types)] - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: see issue #8995 for more information - = note: `#[warn(incomplete_features)]` on by default - error[E0207]: the type parameter `X` is not constrained by the impl trait, self type, or predicates --> $DIR/inherent-assoc-ty-mismatch-issue-153539.rs:9:6 | @@ -25,7 +16,7 @@ LL | f(&1) = help: consider constraining the associated type `S<'_>::P` to `&'e i32` = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html -error: aborting due to 2 previous errors; 1 warning emitted +error: aborting due to 2 previous errors Some errors have detailed explanations: E0207, E0308. For more information about an error, try `rustc --explain E0207`.