aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3566-2.rs
blob: 3f3ea73789a07d335c4934af72af9dfdca90266b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// run-pass

#![allow(H8)]
#![allow(dead_code)]


// pretty-expanded FIXME #23616

mod a {
    pub mod b {
        pub type t = isize;

        pub fn f(x: [u8; { let s = 17; 100 }]) -> [u8;  { let z = 18; 100 }] {
    //~^ WARN unused variable: `s`
    //~| WARN unused variable: `z`
    x
}
    }
}

pub fn main() {    //~ ERROR cannot move out
    }