]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-35987.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / span / issue-35987.stderr
1 error[E0404]: expected trait, found type parameter `Add`
2   --> $DIR/issue-35987.rs:5:21
3    |
4 LL | impl<T: Clone, Add> Add for Foo<T> {
5    |                     ^^^ not a trait
6 help: possible better candidate is found in another module, you can import it into scope
7    |
8 LL | use std::ops::Add;
9    |
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0404`.