@@ -9,8 +9,8 @@ LL | MyTrait::my_fn();
9
9
|
10
10
help: use the fully-qualified path to the only available implementation
11
11
|
12
- LL | <::inner:: MyStruct as MyTrait>::my_fn();
13
- | +++++++++++++++++++++ +
12
+ LL | <MyStruct as MyTrait>::my_fn();
13
+ | ++++++++++++ +
14
14
15
15
error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
16
16
--> $DIR/E0790.rs:21:17
@@ -23,8 +23,8 @@ LL | let _ = MyTrait::MY_ASSOC_CONST;
23
23
|
24
24
help: use the fully-qualified path to the only available implementation
25
25
|
26
- LL | let _ = <::inner:: MyStruct as MyTrait>::MY_ASSOC_CONST;
27
- | +++++++++++++++++++++ +
26
+ LL | let _ = <MyStruct as MyTrait>::MY_ASSOC_CONST;
27
+ | ++++++++++++ +
28
28
29
29
error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
30
30
--> $DIR/E0790.rs:26:5
@@ -37,8 +37,8 @@ LL | inner::MyTrait::my_fn();
37
37
|
38
38
help: use the fully-qualified path to the only available implementation
39
39
|
40
- LL | inner::<::inner:: MyStruct as MyTrait>::my_fn();
41
- | +++++++++++++++++++++ +
40
+ LL | inner::<MyStruct as MyTrait>::my_fn();
41
+ | ++++++++++++ +
42
42
43
43
error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
44
44
--> $DIR/E0790.rs:30:13
@@ -51,8 +51,8 @@ LL | let _ = inner::MyTrait::MY_ASSOC_CONST;
51
51
|
52
52
help: use the fully-qualified path to the only available implementation
53
53
|
54
- LL | let _ = inner::<::inner:: MyStruct as MyTrait>::MY_ASSOC_CONST;
55
- | +++++++++++++++++++++ +
54
+ LL | let _ = inner::<MyStruct as MyTrait>::MY_ASSOC_CONST;
55
+ | ++++++++++++ +
56
56
57
57
error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
58
58
--> $DIR/E0790.rs:50:5
@@ -65,8 +65,8 @@ LL | MyTrait2::my_fn();
65
65
|
66
66
help: use a fully-qualified path to a specific available implementation (2 found)
67
67
|
68
- LL | <:: Impl1 as MyTrait2>::my_fn();
69
- | +++++++++++ +
68
+ LL | <Impl1 as MyTrait2>::my_fn();
69
+ | +++++++++ +
70
70
71
71
error: aborting due to 5 previous errors
72
72
0 commit comments