4 #![allow(unused_variables)]
5 // Test that freezing an `&mut` pointer while referent is
8 // Example from compiler/rustc_borrowck/borrowck/README.md
10 // pretty-expanded FIXME #23616
12 fn foo<'a>(mut t0: &'a mut isize,
13 mut t1: &'a mut isize) {
14 let p: &isize = &*t0; // Freezes `*t0`
16 let q: &isize = &**t2; // Freezes `*t0`, but that's ok...
17 let r: &isize = &*t0; // ...after all, could do same thing directly.