inferring, but then attempting to convert integer types
This commit is contained in:
parent
70ca7bb74d
commit
ceda46b8d1
|
@ -4,6 +4,7 @@ fn main() {
|
|||
|
||||
takes_u32(x);
|
||||
takes_i8(y);
|
||||
takes_u32(y.try_into().unwrap());
|
||||
}
|
||||
|
||||
fn takes_u32(x: u32) -> () {
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue