Debian Codegraph @

gcc/testsuite/rust/compile/while_let_expr.rs

raw
1 // { dg-options "-fsyntax-only" }
2
3 pub enum Option<T> {
4 None,
5 Some(T),
6 }
7
8 fn main() {
9 let mut x = Option::Some(3);
10 let a = while let Option::Some(1) = x {
11 x = Option::None;
12 };
13 }