fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type 2 --> $DIR/E0790.rs:17:9 3 | 4LL | fn my_fn(); 5 | ----------- `MyTrait::my_fn` defined here 6... 7LL | MyTrait::my_fn(); 8 | ^^^^^^^^^^^^^^ cannot call associated function of trait 9 | 10help: use the fully-qualified path to the only available implementation 11 | 12LL | <MyStruct as MyTrait>::my_fn(); 13 | ++++++++++++ + 14 15error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type 16 --> $DIR/E0790.rs:21:17 17 | 18LL | const MY_ASSOC_CONST: (); 19 | ------------------------- `MyTrait::MY_ASSOC_CONST` defined here 20... 21LL | let _ = MyTrait::MY_ASSOC_CONST; 22 | ^^^^^^^^^^^^^^^^^^^^^^^ cannot refer to the associated constant of trait 23 | 24help: use the fully-qualified path to the only available implementation 25 | 26LL | let _ = <MyStruct as MyTrait>::MY_ASSOC_CONST; 27 | ++++++++++++ + 28 29error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type 30 --> $DIR/E0790.rs:26:5 31 | 32LL | fn my_fn(); 33 | ----------- `MyTrait::my_fn` defined here 34... 35LL | inner::MyTrait::my_fn(); 36 | ^^^^^^^^^^^^^^^^^^^^^ cannot call associated function of trait 37 | 38help: use the fully-qualified path to the only available implementation 39 | 40LL | <MyStruct as inner::MyTrait>::my_fn(); 41 | ++++++++++++ + 42 43error[E0790]: cannot refer to the associated constant on trait without specifying the corresponding `impl` type 44 --> $DIR/E0790.rs:30:13 45 | 46LL | const MY_ASSOC_CONST: (); 47 | ------------------------- `MyTrait::MY_ASSOC_CONST` defined here 48... 49LL | let _ = inner::MyTrait::MY_ASSOC_CONST; 50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot refer to the associated constant of trait 51 | 52help: use the fully-qualified path to the only available implementation 53 | 54LL | let _ = <MyStruct as inner::MyTrait>::MY_ASSOC_CONST; 55 | ++++++++++++ + 56 57error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type 58 --> $DIR/E0790.rs:50:5 59 | 60LL | fn my_fn(); 61 | ----------- `MyTrait2::my_fn` defined here 62... 63LL | MyTrait2::my_fn(); 64 | ^^^^^^^^^^^^^^^ cannot call associated function of trait 65 | 66help: use a fully-qualified path to a specific available implementation 67 | 68LL | </* self type */ as MyTrait2>::my_fn(); 69 | +++++++++++++++++++ + 70 71error: aborting due to 5 previous errors 72 73For more information about this error, try `rustc --explain E0790`.