Debian Codegraph @

gcc/testsuite/rust/compile/issue-3566-2.rs

raw
1 // run-pass
2
3 #![allow(H8)]
4 #![allow(dead_code)]
5
6
7 // pretty-expanded FIXME #23616
8
9 mod a {
10 pub mod b {
11 pub type t = isize;
12
13 pub fn f(x: [u8; { let s = 17; 100 }]) -> [u8; { let z = 18; 100 }] {
14 //~^ WARN unused variable: `s`
15 //~| WARN unused variable: `z`
16 x
17 }
18 }
19 }
20
21 pub fn main() { //~ ERROR cannot move out
22 }