1
Fork 0
rust/tests/ui/let-else/uninitialized-refutable-let-issue-123844.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
257 B
Rust
Raw Normal View History

// 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;
}