2019-10-18 10:37:28 -07:00
|
|
|
pub fn foo(num: i32) -> i32 {
|
2019-10-18 10:33:25 -07:00
|
|
|
let foo: i32::from_be(num);
|
|
|
|
//~^ ERROR expected type, found local variable `num`
|
2024-08-26 14:51:26 -04:00
|
|
|
//~| ERROR argument types not allowed with return type notation
|
2024-08-26 15:03:30 -04:00
|
|
|
//~| ERROR return type notation not allowed in this position yet
|
2019-10-18 10:37:28 -07:00
|
|
|
foo
|
2019-10-18 10:33:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = foo(42);
|
|
|
|
}
|