about summary refs log tree commit diff
path: root/tests/ui/pattern/uninit-trivial.rs
blob: 6ea6796c1c1f0de8b231452c5aa6b2e4d75f7bad (plain)
1
2
3
4
5
6
7
8
// 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
}