rust/tests/ui/suggestions/issue-104327.rs
2023-01-11 09:32:08 +00:00

13 lines
201 B
Rust

trait Bar {}
trait Foo {
fn f() {}
}
impl Foo for dyn Bar {}
fn main() {
Foo::f();
//~^ ERROR cannot call associated function on trait without specifying the corresponding `impl` type
}