mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +00:00

tests/ui/match/enum-and-break-in-match-issue-41213.rs and tests/ui/while/while-let-scope-issue-40235.rs doesn't need to be run.
9 lines
125 B
Rust
9 lines
125 B
Rust
//@ check-pass
|
|
#![allow(unused_variables)]
|
|
fn foo() {}
|
|
|
|
fn main() {
|
|
while let Some(foo) = Some(1) { break }
|
|
foo();
|
|
}
|