2022-11-12 13:42:06 -06:00
|
|
|
error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
|
|
|
|
--> $DIR/issue-104328.rs:10:5
|
|
|
|
|
|
|
|
|
LL | fn f() {}
|
|
|
|
| --------- `Foo::f` defined here
|
|
|
|
...
|
|
|
|
LL | Foo::f();
|
2024-01-23 20:52:29 -06:00
|
|
|
| ^^^^^^^^ cannot call associated function of trait
|
2022-11-12 13:42:06 -06:00
|
|
|
|
|
|
|
|
help: use the fully-qualified path to the only available implementation
|
|
|
|
|
|
|
|
|
LL | <(dyn Sized + 'static) as Foo>::f();
|
|
|
|
| +++++++++++++++++++++++++ +
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-11-12 13:42:06 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0790`.
|