]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-104327.rs
Auto merge of #106827 - alexcrichton:update-llvm-to-15.0.7, r=cuviper
[rust.git] / tests / ui / suggestions / issue-104327.rs
1 trait Bar {}
2
3 trait Foo {
4     fn f() {}
5 }
6
7 impl Foo for dyn Bar {}
8
9 fn main() {
10     Foo::f();
11     //~^ ERROR cannot call associated function on trait without specifying the corresponding `impl` type
12 }