]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-35987.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / span / issue-35987.rs
1 struct Foo<T: Clone>(T);
2
3 use std::ops::Add;
4
5 impl<T: Clone, Add> Add for Foo<T> {
6 //~^ ERROR expected trait, found type parameter
7     type Output = usize;
8
9     fn add(self, rhs: Self) -> Self::Output {
10         unimplemented!();
11     }
12 }
13
14 fn main() {}