fork/rust

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

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

master
693 B23 linesraw
1error: the `y @ _` pattern can be written as just `y`
2  --> $DIR/patterns.rs:14:9
3   |
4LL |         y @ _ => (),
5   |         ^^^^^ help: try: `y`
6   |
7   = note: `-D clippy::redundant-pattern` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::redundant_pattern)]`
9
10error: the `x @ _` pattern can be written as just `x`
11  --> $DIR/patterns.rs:29:9
12   |
13LL |         ref mut x @ _ => {
14   |         ^^^^^^^^^^^^^ help: try: `ref mut x`
15
16error: the `x @ _` pattern can be written as just `x`
17  --> $DIR/patterns.rs:37:9
18   |
19LL |         ref x @ _ => println!("vec: {:?}", x),
20   |         ^^^^^^^^^ help: try: `ref x`
21
22error: aborting due to 3 previous errors
23