rust/tests/ui/pattern/uninit-trivial.rs

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

9 lines
196 B
Rust
Raw Normal View History

// Regression test for the semantic changes in
// <https://github.com/rust-lang/rust/pull/139042>.
fn main() {
let x;
let (0 | _) = x;
//~^ ERROR used binding `x` isn't initialized
}