mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
13 lines
228 B
Rust
13 lines
228 B
Rust
#![feature(object_safe_for_dispatch)]
|
|
|
|
trait Foo {
|
|
fn f() {}
|
|
}
|
|
|
|
impl Foo for dyn Sized {}
|
|
|
|
fn main() {
|
|
Foo::f();
|
|
//~^ ERROR cannot call associated function on trait without specifying the corresponding `impl` type
|
|
}
|