rust/tests/ui/span/issue-35987.stderr
Esteban Küber f0845adb0c Show diff suggestion format on verbose replacement
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
2025-02-10 20:21:39 +00:00

31 lines
968 B
Plaintext

error[E0404]: expected trait, found type parameter `Add`
--> $DIR/issue-35987.rs:5:21
|
LL | use std::ops::Add;
| --- you might have meant to refer to this trait
LL |
LL | impl<T: Clone, Add> Add for Foo<T> {
| --- ^^^ not a trait
| |
| found this type parameter
error[E0223]: ambiguous associated type
--> $DIR/issue-35987.rs:9:32
|
LL | fn add(self, rhs: Self) -> Self::Output {
| ^^^^^^^^^^^^
|
help: use fully-qualified syntax
|
LL - fn add(self, rhs: Self) -> Self::Output {
LL + fn add(self, rhs: Self) -> <Foo<T> as BitOr>::Output {
|
LL - fn add(self, rhs: Self) -> Self::Output {
LL + fn add(self, rhs: Self) -> <Foo<T> as IntoFuture>::Output {
|
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0223, E0404.
For more information about an error, try `rustc --explain E0223`.