struct Foo(T); use std::ops::Add; impl Add for Foo { //~^ ERROR expected trait, found type parameter type Output = usize; fn add(self, rhs: Self) -> Self::Output { //~^ ERROR ambiguous associated type unimplemented!(); } } fn main() {}