1 2 3 4 5 6 7 8 9 10
trait foo { static fn bar(); } impl int: foo { fn bar() {} //~ ERROR self type does not match the trait method's } fn main() {}