rust/src/test/compile-fail/trait-impl-can-not-have-untraitful-methods.rs

7 lines
112 B
Rust
Raw Normal View History

trait A { }
impl int: A {
fn foo() { } //~ ERROR method `foo` is not a member of trait `A`
}
fn main() { }