summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/issue-57472.stderr
blob: 26efdf6dbaf348ba3f21d761fdb1fe79b9ccbeac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: unreachable pattern
  --> $DIR/issue-57472.rs:15:13
   |
LL |             Punned { bar: [_], .. } => println!("bar"),
   |             ^^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/issue-57472.rs:2:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: unreachable pattern
  --> $DIR/issue-57472.rs:31:13
   |
LL |             Punned { bar: [_] } => println!("bar"),
   |             ^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors