]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/issue-101866.stderr
Make `output_filenames` a real query
[rust.git] / tests / ui / type / issue-101866.stderr
1 error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
2   --> $DIR/issue-101866.rs:12:5
3    |
4 LL |     fn func();
5    |     ---------- `TraitA::func` defined here
6 ...
7 LL |     TraitA::<i32>::func();
8    |     ^^^^^^^^^^^^^^^^^^^ cannot call associated function of trait
9    |
10 help: use the fully-qualified path to the only available implementation
11    |
12 LL -     TraitA::<i32>::func();
13 LL +     <StructA as TraitA<i32>>::func();
14    |
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0790`.