-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not lint unresolved trait for ineffective unstable trait impl
- 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`. |