fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
291 B14 linesraw
1// run-rustfix
2
3struct TargetStruct;
4
5impl From<usize> for TargetStruct {
6    fn from(_unchecked: usize) -> Self {
7        TargetStruct
8    }
9}
10
11fn main() {
12    let a = &3;
13    let _b: TargetStruct = (*a).into(); //~ ERROR the trait bound `TargetStruct: From<&{integer}>` is not satisfied
14}