]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/issue-35987.stderr
Optimize `TyKind::eq`.
[rust.git] / tests / ui / span / issue-35987.stderr
1 error[E0404]: expected trait, found type parameter `Add`
2   --> $DIR/issue-35987.rs:5:21
3    |
4 LL | use std::ops::Add;
5    |               --- you might have meant to refer to this trait
6 LL |
7 LL | impl<T: Clone, Add> Add for Foo<T> {
8    |                ---  ^^^ not a trait
9    |                |
10    |                found this type parameter
11    |
12 help: consider importing this trait instead
13    |
14 LL | use std::ops::Add;
15    |
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0404`.