]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-104327.stderr
Auto merge of #106399 - estebank:type-err-span-label, r=nagisa
[rust.git] / tests / ui / suggestions / issue-104327.stderr
1 error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
2   --> $DIR/issue-104327.rs:10:5
3    |
4 LL |     fn f() {}
5    |     --------- `Foo::f` defined here
6 ...
7 LL |     Foo::f();
8    |     ^^^^^^ cannot call associated function of trait
9    |
10 help: use the fully-qualified path to the only available implementation
11    |
12 LL |     <(dyn Bar + 'static) as Foo>::f();
13    |     +++++++++++++++++++++++    +
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0790`.