1 // Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
14 #![allow(unused, clippy::no_effect, clippy::unnecessary_operation)]
15 #![warn(clippy::mut_mut)]
20 fn fun(x : &mut &mut u32) -> bool {
24 fn less_fun(x : *mut *mut u32) {
28 macro_rules! mut_ptr {
29 ($p:expr) => { &mut $p }
32 #[allow(unused_mut, unused_variables)]
34 let mut x = &mut &mut 1u32;
40 let y : &mut &mut u32 = &mut &mut 2;
45 let y : &mut &mut &mut u32 = &mut &mut &mut 2;
49 let mut z = mut_ptr!(&mut 3u32);
53 let array = [5, 6, 7, 8, 9];
54 let mut args = array.iter().skip(2);
55 for &arg in &mut args {