]>
Commit | Line | Data |
---|---|---|
32a655c1 | 1 | error[E0404]: expected trait, found type parameter `Add` |
0731742a | 2 | --> $DIR/issue-35987.rs:5:21 |
476ff2be | 3 | | |
487cf647 FG |
4 | LL | use std::ops::Add; |
5 | | --- you might have meant to refer to this trait | |
6 | LL | | |
0531ce1d | 7 | LL | impl<T: Clone, Add> Add for Foo<T> { |
f2b60f7d FG |
8 | | --- ^^^ not a trait |
9 | | | | |
10 | | found this type parameter | |
e74abb32 | 11 | | |
f9f354fc | 12 | help: consider importing this trait instead |
041b39d2 | 13 | | |
0531ce1d | 14 | LL | use std::ops::Add; |
041b39d2 | 15 | | |
476ff2be | 16 | |
0531ce1d | 17 | error: aborting due to previous error |
476ff2be | 18 | |
0531ce1d | 19 | For more information about this error, try `rustc --explain E0404`. |