2 #![allow(unused_variables)]
4 #![feature(generators)]
6 use std::cell::RefCell;
11 fn test(&self, a: ()) {}
15 // Test that the MIR local with type &A created for the auto-borrow adjustment
16 // is caught by typeck
17 move || { //~ WARN unused generator that must be used
21 // Test that the std::cell::Ref temporary returned from the `borrow` call
22 // is caught by typeck
23 let y = RefCell::new(true);
24 static move || { //~ WARN unused generator that must be used