blob: 9eda68027b23ec5f28144eba12f03d0f5d4093b4 (
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
}
|