2 // [thir]compile-flags: -Zthir-unsafeck
6 let mut v = Vec::<i32>::with_capacity(24);
9 let f = |v: &mut Vec<_>| {
10 unsafe { //~ ERROR unnecessary `unsafe`
12 |w: &mut Vec<u32>| { unsafe { //~ ERROR unnecessary `unsafe`
16 |x: &mut Vec<u32>| { unsafe { //~ ERROR unnecessary `unsafe`
25 |y: &mut Vec<u32>| { unsafe {