mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
12 lines
302 B
Rust
12 lines
302 B
Rust
pub fn foo(num: i32) -> i32 {
|
|
let foo: i32::from_be(num);
|
|
//~^ ERROR expected type, found local variable `num`
|
|
//~| ERROR argument types not allowed with return type notation
|
|
//~| ERROR return type notation not allowed in this position yet
|
|
foo
|
|
}
|
|
|
|
fn main() {
|
|
let _ = foo(42);
|
|
}
|