fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
984 B29 linesraw
1error[E0170]: pattern binding `A` is named the same as one of the variants of the type `E`
2  --> $DIR/lint-match-arms-2.rs:12:9
3   |
4LL |         A => {}
5   |         ^ help: to match on the variant, qualify the path: `E::A`
6   |
7note: the lint level is defined here
8  --> $DIR/lint-match-arms-2.rs:11:16
9   |
10LL |         #[deny(bindings_with_variant_name)]
11   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: irrefutable `if let` guard pattern
14  --> $DIR/lint-match-arms-2.rs:18:18
15   |
16LL |         a if let b = a => {}
17   |                  ^
18   |
19   = note: this pattern will always match, so the guard is useless
20   = help: consider removing the guard and adding a `let` inside the match arm
21note: the lint level is defined here
22  --> $DIR/lint-match-arms-2.rs:17:16
23   |
24LL |         #[deny(irrefutable_let_patterns)]
25   |                ^^^^^^^^^^^^^^^^^^^^^^^^
26
27error: aborting due to 2 previous errors
28
29For more information about this error, try `rustc --explain E0170`.