blob: 94c72a31e5e6c267fe2fb33b01aad852df626658 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
pub fn foo(num: i32) -> i32 {
let foo: i32::from_be(num);
//~^ ERROR expected type, found local variable `num`
//~| ERROR type arguments are not allowed for this type
//~| ERROR parenthesized type parameters may only be used with a `Fn` trait
//~| ERROR ambiguous associated type
foo
}
fn main() {
let _ = foo(42);
}
|