]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-104328.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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 }