blob: 3a6e6ffe249106d83a6470a71ebd257c9cfccaff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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 {
unimplemented!();
}
}
fn main() {}
|