rust/tests/ui/resolve/issue-102946.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
707 B
Plaintext
Raw Normal View History

2022-10-12 10:03:46 +00:00
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
|
2023-03-18 02:18:39 +00:00
LL + use std::error::Error;
2022-10-12 10:03:46 +00:00
|
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`.