rust/tests/ui/suggestions/issue-104328.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
228 B
Rust
Raw Normal View History

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