fork/rust

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

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

master
687 B21 linesraw
1error[E0201]: duplicate definitions with name `Bar`:
2  --> $DIR/associated-item-duplicate-names-3.rs:14:5
3   |
4LL |     type Bar;
5   |     --------- item in trait
6...
7LL |     type Bar = i16;
8   |     --------------- previous definition here
9LL |     type Bar = u16;
10   |     ^^^^^^^^^^^^^^^ duplicate definition
11
12error[E0223]: ambiguous associated type
13  --> $DIR/associated-item-duplicate-names-3.rs:18:12
14   |
15LL |     let x: Baz::Bar = 5;
16   |            ^^^^^^^^ help: use the fully-qualified path: `<Baz as Foo>::Bar`
17
18error: aborting due to 2 previous errors
19
20Some errors have detailed explanations: E0201, E0223.
21For more information about an error, try `rustc --explain E0201`.