use #![expect(incomplete_features)]

This commit is contained in:
Takayuki Maeda
2026-03-10 18:32:20 +09:00
parent a92006f5c9
commit db1060e5bb
2 changed files with 2 additions and 11 deletions
@@ -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:
@@ -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 <https://github.com/rust-lang/rust/issues/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`.