Sign in
fuchsia
/
third_party
/
rust
/
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
/
.
/
tests
/
ui
/
let-else
/
uninitialized-refutable-let-issue-123844.rs
blob: 8426b0021f4977ffe1adf1ca9dea7046a061de38 [
file
] [
log
] [
blame
]
// https://github.com/rust-lang/rust/issues/123844
// An uninitialized refutable let should not suggest `let else`, as it can't be used with deferred
// initialization.
fn
main
()
{
let
Some
(
x
);
//~ ERROR refutable pattern in local binding
x
=
1
;
}