summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/suggest-dereferences/suggest-dereferencing-receiver-argument.fixed
blob: ea3d1bf853a491b31c5da0cb6b089a7c33f9f83f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-rustfix

struct TargetStruct;

impl From<usize> for TargetStruct {
    fn from(_unchecked: usize) -> Self {
        TargetStruct
    }
}

fn main() {
    let a = &3;
    let _b: TargetStruct = (*a).into(); //~ ERROR the trait bound `TargetStruct: From<&{integer}>` is not satisfied
}