mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-08 06:34:07 +00:00
10 lines
150 B
Rust
10 lines
150 B
Rust
// run-pass
|
|
// Regression test for issue #5239
|
|
|
|
|
|
pub fn main() {
|
|
let _f = |ref x: isize| { *x };
|
|
let foo = 10;
|
|
assert_eq!(_f(foo), 10);
|
|
}
|