blob: 831731ba4741983ac8aa2648b7359efdb43ac3df [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/issue-92010-trait-bound-not-satisfied.rs:8:43
|
LL | fn y(&self, y: f64) -> Self { P{y, .. self.clone() } }
| ^^^^^^^^^^^^ expected `P<T>`, found `&P<T>`
|
= note: expected struct `P<T>`
found reference `&P<T>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.