forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#108449 - fee1-dead-contrib:do_not_lint_unre…
…solved, r=compiler-errors Do not lint ineffective unstable trait impl for unresolved trait
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![feature(staged_api)] | ||
#![stable(feature = "uwu", since = "1.0.0")] | ||
|
||
#[unstable(feature = "foo", issue = "none")] | ||
impl Foo for () {} | ||
//~^ ERROR cannot find trait `Foo` in this scope | ||
|
||
fn main() {} |
9 changes: 9 additions & 0 deletions
9
tests/ui/stability-attribute/unresolved_stability_lint.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
error[E0405]: cannot find trait `Foo` in this scope | ||
--> $DIR/unresolved_stability_lint.rs:5:6 | ||
| | ||
LL | impl Foo for () {} | ||
| ^^^ not found in this scope | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0405`. |