]> git.lizzy.rs Git - rust.git/blob - tests/ui/patterns.stderr
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / patterns.stderr
1 error: the `y @ _` pattern can be written as just `y`
2   --> $DIR/patterns.rs:11:9
3    |
4 LL |         y @ _ => (),
5    |         ^^^^^ help: try: `y`
6    |
7    = note: `-D clippy::redundant-pattern` implied by `-D warnings`
8
9 error: the `x @ _` pattern can be written as just `x`
10   --> $DIR/patterns.rs:26:9
11    |
12 LL |         ref mut x @ _ => {
13    |         ^^^^^^^^^^^^^ help: try: `ref mut x`
14
15 error: the `x @ _` pattern can be written as just `x`
16   --> $DIR/patterns.rs:34:9
17    |
18 LL |         ref x @ _ => println!("vec: {:?}", x),
19    |         ^^^^^^^^^ help: try: `ref x`
20
21 error: aborting due to 3 previous errors
22