1 error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
5 | ----------- `MyTrait::my_fn` defined here
8 | ^^^^^^^^^^^^^^ cannot call associated function of trait
10 help: use the fully-qualified path to the only available implementation
12 LL | <MyStruct as MyTrait>::my_fn();
15 error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
16 --> $DIR/E0790.rs:21:17
18 LL | const MY_ASSOC_CONST: ();
19 | ------------------------- `MyTrait::MY_ASSOC_CONST` defined here
21 LL | let _ = MyTrait::MY_ASSOC_CONST;
22 | ^^^^^^^^^^^^^^^^^^^^^^^ cannot refer to the associated constant of trait
24 help: use the fully-qualified path to the only available implementation
26 LL | let _ = <MyStruct as MyTrait>::MY_ASSOC_CONST;
29 error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
30 --> $DIR/E0790.rs:26:5
33 | ----------- `MyTrait::my_fn` defined here
35 LL | inner::MyTrait::my_fn();
36 | ^^^^^^^^^^^^^^^^^^^^^ cannot call associated function of trait
38 help: use the fully-qualified path to the only available implementation
40 LL | <MyStruct as inner::MyTrait>::my_fn();
43 error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type
44 --> $DIR/E0790.rs:30:13
46 LL | const MY_ASSOC_CONST: ();
47 | ------------------------- `MyTrait::MY_ASSOC_CONST` defined here
49 LL | let _ = inner::MyTrait::MY_ASSOC_CONST;
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot refer to the associated constant of trait
52 help: use the fully-qualified path to the only available implementation
54 LL | let _ = <MyStruct as inner::MyTrait>::MY_ASSOC_CONST;
57 error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
58 --> $DIR/E0790.rs:50:5
61 | ----------- `MyTrait2::my_fn` defined here
63 LL | MyTrait2::my_fn();
64 | ^^^^^^^^^^^^^^^ cannot call associated function of trait
66 help: use a fully-qualified path to a specific available implementation (2 found)
68 LL | <Impl1 as MyTrait2>::my_fn();
71 error: aborting due to 5 previous errors
73 For more information about this error, try `rustc --explain E0790`.