about summary refs log tree commit diff
path: root/tests/ui/use/import_trait_associated_item_bad.stderr
blob: d5cd5d37bd714b6522deb4ad104c1f4b78b66b1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
error[E0223]: ambiguous associated type
  --> $DIR/import_trait_associated_item_bad.rs:11:15
   |
LL | type Alias1 = AssocTy;
   |               ^^^^^^^
   |
help: if there were a type named `Example` that implemented `Trait`, you could use the fully-qualified path
   |
LL | type Alias1 = <Example as Trait>::AssocTy;
   |               ++++++++++++++++++++

error[E0223]: ambiguous associated type
  --> $DIR/import_trait_associated_item_bad.rs:12:15
   |
LL | type Alias2 = self::AssocTy;
   |               ^^^^^^^^^^^^^
   |
help: if there were a type named `Example` that implemented `Trait`, you could use the fully-qualified path
   |
LL - type Alias2 = self::AssocTy;
LL + type Alias2 = <Example as Trait>::AssocTy;
   |

error[E0223]: ambiguous associated constant
  --> $DIR/import_trait_associated_item_bad.rs:15:20
   |
LL | type Alias3 = [u8; CONST];
   |                    ^^^^^
   |
help: if there were a type named `Example` that implemented `Trait`, you could use the fully-qualified path
   |
LL | type Alias3 = [u8; <Example as Trait>::CONST];
   |                    ++++++++++++++++++++

error[E0223]: ambiguous associated constant
  --> $DIR/import_trait_associated_item_bad.rs:16:20
   |
LL | type Alias4 = [u8; self::CONST];
   |                    ^^^^^^^^^^^
   |
help: if there were a type named `Example` that implemented `Trait`, you could use the fully-qualified path
   |
LL - type Alias4 = [u8; self::CONST];
LL + type Alias4 = [u8; <Example as Trait>::CONST];
   |

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0223`.