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