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#102956 - TaKO8Ki:fix-102946, r=fee1-dead
Use `full_res` instead of `expect_full_res` Fixes rust-lang#102946 Fixes rust-lang#102978
- Loading branch information
Showing
3 changed files
with
34 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,7 @@ | ||
impl Error for str::Utf8Error { | ||
//~^ ERROR cannot find trait `Error` in this scope | ||
//~| ERROR ambiguous associated type | ||
fn description(&self) {} | ||
} | ||
|
||
fn main() {} |
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,26 @@ | ||
error[E0405]: cannot find trait `Error` in this scope | ||
--> $DIR/issue-102946.rs:1:6 | ||
| | ||
LL | impl Error for str::Utf8Error { | ||
| ^^^^^ not found in this scope | ||
| | ||
help: consider importing this trait | ||
| | ||
LL | use std::error::Error; | ||
| | ||
|
||
error[E0223]: ambiguous associated type | ||
--> $DIR/issue-102946.rs:1:16 | ||
| | ||
LL | impl Error for str::Utf8Error { | ||
| ^^^^^^^^^^^^^^ | ||
| | ||
help: you are looking for the module in `std`, not the primitive type | ||
| | ||
LL | impl Error for std::str::Utf8Error { | ||
| +++++ | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
Some errors have detailed explanations: E0223, E0405. | ||
For more information about an error, try `rustc --explain E0223`. |