]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/issue-35987.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / 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() {}