]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-item/associated-item-duplicate-names-3.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / associated-item / associated-item-duplicate-names-3.stderr
1 error[E0201]: duplicate definitions with name `Bar`:
2   --> $DIR/associated-item-duplicate-names-3.rs:14:5
3    |
4 LL |     type Bar;
5    |     --------- item in trait
6 ...
7 LL |     type Bar = i16;
8    |     --------------- previous definition here
9 LL |     type Bar = u16;
10    |     ^^^^^^^^^^^^^^^ duplicate definition
11
12 error[E0223]: ambiguous associated type
13   --> $DIR/associated-item-duplicate-names-3.rs:18:12
14    |
15 LL |     let x: Baz::Bar = 5;
16    |            ^^^^^^^^ help: use fully-qualified syntax: `<Baz as Trait>::Bar`
17
18 error: aborting due to 2 previous errors
19
20 Some errors have detailed explanations: E0201, E0223.
21 For more information about an error, try `rustc --explain E0201`.