inferring, but then attempting to convert integer types
This commit is contained in:
parent
70ca7bb74d
commit
ceda46b8d1
22 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ fn main() {
|
|||
|
||||
takes_u32(x);
|
||||
takes_i8(y);
|
||||
takes_u32(y.try_into().unwrap());
|
||||
}
|
||||
|
||||
fn takes_u32(x: u32) -> () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue