rust/tests/ui/resolve/issue-111312.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
243 B
Rust
Raw Normal View History

//@ edition: 2021
trait Has {
fn has() {}
}
trait HasNot {}
fn main() {
HasNot::has();
//~^ ERROR trait objects must include the `dyn` keyword
//~| ERROR no function or associated item named `has` found for trait `HasNot`
}