2019-10-18 12:37:28 -05:00
|
|
|
pub fn foo(num: i32) -> i32 {
|
2019-10-18 12:33:25 -05:00
|
|
|
let foo: i32::from_be(num);
|
|
|
|
//~^ ERROR expected type, found local variable `num`
|
|
|
|
//~| ERROR parenthesized type parameters may only be used with a `Fn` trait
|
|
|
|
//~| ERROR ambiguous associated type
|
2019-10-18 12:37:28 -05:00
|
|
|
foo
|
2019-10-18 12:33:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = foo(42);
|
|
|
|
}
|