Sign in
android
/
toolchain
/
rustc
/
d59a28787b7ba06edbd1e4528a42b66d67dc6a19
/
.
/
src
/
test
/
ui
/
pattern
/
usefulness
/
deny-irrefutable-let-patterns.rs
blob: 14040c8ada67d17f54efb881af4e7a1f6e991196 [
file
] [
log
] [
blame
]
#![
deny
(
irrefutable_let_patterns
)]
fn
main
()
{
if
let
_
=
5
{}
//~ ERROR irrefutable if-let pattern
while
let
_
=
5
{
//~ ERROR irrefutable while-let pattern
break
;
}
}