about summary refs log tree commit diff
path: root/tests/ui/methods/issues/account-for-shadowed-bindings-issue-123558.rs
blob: a08bbf1fdbec5651ecc4801f87ba3e59193916e9 (plain)
1
2
3
4
5
6
7
fn main() {
    let x = Some(3);
    let y = vec![1, 2];
    if let Some(y) = x {
        y.push(y); //~ ERROR E0599
    }
}