rust/tests/ui/span/issue-35987.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
296 B
Rust
Raw Normal View History

struct Foo<T: Clone>(T);
use std::ops::Add;
impl<T: Clone, Add> Add for Foo<T> {
2017-11-20 12:13:27 +00:00
//~^ ERROR expected trait, found type parameter
type Output = usize;
fn add(self, rhs: Self) -> Self::Output {
//~^ ERROR ambiguous associated type
unimplemented!();
}
}
fn main() {}