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