1 #![feature(raw_ref_op)]
3 fn mutable_address_of() {
5 let y = &raw mut x; //~ ERROR cannot borrow
8 fn mutable_address_of_closure() {
11 let y = &raw mut x; //~ ERROR cannot borrow
16 fn mutable_address_of_imm_closure() {
21 f(); //~ ERROR cannot borrow
24 fn make_fn<F: Fn()>(f: F) -> F { f }
26 fn mutable_address_of_fn_closure() {
29 let y = &raw mut x; //~ ERROR cannot borrow
34 fn mutable_address_of_fn_closure_move() {
36 let f = make_fn(move || {
37 let y = &raw mut x; //~ ERROR cannot borrow