Sign in
rust
/
rust-lang
/
rust
/
refs/heads/auto
/
.
/
tests
/
ui
/
for-loop-while
/
while-let-scope.rs
blob: e72cc5bf0c35786b71cc3502493f2b2a9ae07e32 [
file
] [
log
] [
blame
] [
edit
]
//@ check-pass
// regression test for #40235
#![
allow
(
unused_variables
)]
fn
foo
()
{}
fn
main
()
{
while
let
Some
(
foo
)
=
Some
(
1
)
{
break
}
foo
();
}