mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
13 lines
201 B
Rust
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
|
|
}
|