summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-104328.rs
blob: c3707baf79fc3c583fcdbe60fadc289129895d4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![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
}