fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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}