summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfcs/rfc-2528-type-changing-struct-update/issue-92010-trait-bound-not-satisfied.rs
blob: f1a54ee5867c59feb9a64ddabc199f513c578e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Clone)]
struct P<T> {
    x: T,
    y: f64,
}

impl<T> P<T> {
    fn y(&self, y: f64) -> Self { P{y, .. self.clone() } }
                                       //~^ mismatched types [E0308]
}

fn main() {}