summaryrefslogtreecommitdiff
path: root/tests/ui/shadowed/shadowing-in-the-same-pattern.rs
blob: f5872f9fbcf273b9cf55e9e27feda7671aac90af (plain)
1
2
3
4
5
6
7
// Test for issue #14581.

fn f((a, a): (isize, isize)) {} //~ ERROR identifier `a` is bound more than once

fn main() {
    let (a, a) = (1, 1);    //~ ERROR identifier `a` is bound more than once
}