1 2 3 4 5 6 7 8 9 10
trait Trait { fn func() {} } impl Trait for i32 {} fn main() { let x: i32 = 123; x.func(); //~ERROR no method }