rust/tests/ui/moves/move-arg.rs
2024-02-16 20:02:50 +00:00

6 lines
99 B
Rust

//@ run-pass
fn test(foo: isize) { assert_eq!(foo, 10); }
pub fn main() { let x = 10; test(x); }