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

12 lines
109 B
Rust

// edition: 2021
trait Has {
fn has() {}
}
trait HasNot {}
fn main() {
HasNot::has(); //~ ERROR
}