]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generator/reinit-in-match-guard.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / generator / reinit-in-match-guard.rs
CommitLineData
5099ac24
FG
1// build-pass
2
3#![feature(generators)]
4
5#![allow(unused_assignments, dead_code)]
6
7fn main() {
8 let _ = || {
9 let mut x = vec![22_usize];
10 std::mem::drop(x);
11 match y() {
12 true if {
13 x = vec![];
14 false
15 } => {}
16 _ => {
17 yield;
18 }
19 }
20 };
21}
22
23fn y() -> bool {
24 true
25}