1 error[E0405]: cannot find trait `Error` in this scope
2 --> $DIR/issue-102946.rs:1:6
4 LL | impl Error for str::Utf8Error {
5 | ^^^^^ not found in this scope
7 help: consider importing this trait
9 LL | use std::error::Error;
12 error[E0223]: ambiguous associated type
13 --> $DIR/issue-102946.rs:1:16
15 LL | impl Error for str::Utf8Error {
18 help: you are looking for the module in `std`, not the primitive type
20 LL | impl Error for std::str::Utf8Error {
23 error: aborting due to 2 previous errors
25 Some errors have detailed explanations: E0223, E0405.
26 For more information about an error, try `rustc --explain E0223`.