summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.stderr
blob: 5957ea7c9efdd8c9d2551c16c502f52cfc73003b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 struct `P`, 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`.