1 error[E0416]: identifier `x` is bound more than once in the same pattern
2 --> $DIR/issue-3038.rs:22:15
4 LL | f::g(x, x) => { println!("{}", x + x); }
5 | ^ used in a pattern more than once
7 error[E0416]: identifier `x` is bound more than once in the same pattern
8 --> $DIR/issue-3038.rs:27:32
10 LL | h::i(j::l(x, _), k::m(_, x))
11 | ^ used in a pattern more than once
13 error[E0416]: identifier `x` is bound more than once in the same pattern
14 --> $DIR/issue-3038.rs:33:13
16 LL | (x, x) => { x } //~ ERROR identifier `x` is bound more than once in the same pattern
17 | ^ used in a pattern more than once
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0416`.