@@ -9,8 +9,8 @@ LL | MyTrait::my_fn();
99 |
1010help: use the fully-qualified path to the only available implementation
1111 |
12- LL | <::inner:: MyStruct as MyTrait>::my_fn();
13- | +++++++++++++++++++++ +
12+ LL | <MyStruct as MyTrait>::my_fn();
13+ | ++++++++++++ +
1414
1515error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
1616 --> $DIR/E0790.rs:21:17
@@ -23,8 +23,8 @@ LL | let _ = MyTrait::MY_ASSOC_CONST;
2323 |
2424help: use the fully-qualified path to the only available implementation
2525 |
26- LL | let _ = <::inner:: MyStruct as MyTrait>::MY_ASSOC_CONST;
27- | +++++++++++++++++++++ +
26+ LL | let _ = <MyStruct as MyTrait>::MY_ASSOC_CONST;
27+ | ++++++++++++ +
2828
2929error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
3030 --> $DIR/E0790.rs:26:5
@@ -37,8 +37,8 @@ LL | inner::MyTrait::my_fn();
3737 |
3838help: use the fully-qualified path to the only available implementation
3939 |
40- LL | inner::<::inner:: MyStruct as MyTrait>::my_fn();
41- | +++++++++++++++++++++ +
40+ LL | inner::<MyStruct as MyTrait>::my_fn();
41+ | ++++++++++++ +
4242
4343error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
4444 --> $DIR/E0790.rs:30:13
@@ -51,8 +51,8 @@ LL | let _ = inner::MyTrait::MY_ASSOC_CONST;
5151 |
5252help: use the fully-qualified path to the only available implementation
5353 |
54- LL | let _ = inner::<::inner:: MyStruct as MyTrait>::MY_ASSOC_CONST;
55- | +++++++++++++++++++++ +
54+ LL | let _ = inner::<MyStruct as MyTrait>::MY_ASSOC_CONST;
55+ | ++++++++++++ +
5656
5757error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
5858 --> $DIR/E0790.rs:50:5
@@ -65,8 +65,8 @@ LL | MyTrait2::my_fn();
6565 |
6666help: use a fully-qualified path to a specific available implementation (2 found)
6767 |
68- LL | <:: Impl1 as MyTrait2>::my_fn();
69- | +++++++++++ +
68+ LL | <Impl1 as MyTrait2>::my_fn();
69+ | +++++++++ +
7070
7171error: aborting due to 5 previous errors
7272
0 commit comments