]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-104328.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / suggestions / issue-104328.rs
1 #![feature(object_safe_for_dispatch)]
2
3 trait Foo {
4     fn f() {}
5 }
6
7 impl Foo for dyn Sized {}
8
9 fn main() {
10     Foo::f();
11     //~^ ERROR cannot call associated function on trait without specifying the corresponding `impl` type
12 }