fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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