Skip to content

Commit db1060e

Browse files
committed
use #![expect(incomplete_features)]
1 parent a92006f commit db1060e

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ compile-flags: -Znext-solver=globally
22
#![feature(inherent_associated_types)]
3-
//~^ WARN the feature `inherent_associated_types` is incomplete
3+
#![expect(incomplete_features)]
44

55
// Regression test for https://github.com/rust-lang/rust/issues/153539:
66

tests/ui/associated-inherent-types/inherent-assoc-ty-mismatch-issue-153539.stderr

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
warning: the feature `inherent_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
2-
--> $DIR/inherent-assoc-ty-mismatch-issue-153539.rs:2:12
3-
|
4-
LL | #![feature(inherent_associated_types)]
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^
6-
|
7-
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
8-
= note: `#[warn(incomplete_features)]` on by default
9-
101
error[E0207]: the type parameter `X` is not constrained by the impl trait, self type, or predicates
112
--> $DIR/inherent-assoc-ty-mismatch-issue-153539.rs:9:6
123
|
@@ -25,7 +16,7 @@ LL | f(&1)
2516
= help: consider constraining the associated type `S<'_>::P` to `&'e i32`
2617
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
2718

28-
error: aborting due to 2 previous errors; 1 warning emitted
19+
error: aborting due to 2 previous errors
2920

3021
Some errors have detailed explanations: E0207, E0308.
3122
For more information about an error, try `rustc --explain E0207`.

0 commit comments

Comments
 (0)