1 #![feature(tool_lints)]
7 fn the_answer(ref mut x: u8) {
14 // Closures should not warn
15 let y = |ref x| { println!("{:?}", x) };
20 let ref y: (&_, u8) = (&1, 2);
24 let ref mut z = 1 + 2;
26 let (ref x, _) = (1,2); // okay, not top level
27 println!("The answer is {}.", x);