rust/tests/ui/suggestions/issue-104328.rs
2024-10-10 00:57:59 +02:00

13 lines
231 B
Rust

#![feature(dyn_compatible_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
}