summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.stderr
blob: 86f2d9b6ec8008ec39f74100040373685c995787 (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 `P<T>`, found `&P<T>`
   |
   = note: expected struct `P<_>`
           found reference `&P<_>`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.