rust/tests/ui/span/issue-35987.rs
2023-01-11 09:32:08 +00:00

15 lines
251 B
Rust

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() {}