rust/tests/ui/traits/test.rs

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

7 lines
133 B
Rust
Raw Normal View History

#[allow(non_camel_case_types)]
trait foo { fn foo(&self); }
impl isize for usize { fn foo(&self) {} } //~ ERROR trait
fn main() {}