about summary refs log tree commit diff
path: root/tests/ui/pattern/box-pattern-constructor-mismatch.stderr
blob: 489eefe0d21a4b0fccf8379a766b1efb2f7f8f26 (plain)
1
2
3
4
5
6
7
8
9
10
error: mix of deref patterns and normal constructors
  --> $DIR/box-pattern-constructor-mismatch.rs:8:9
   |
LL |         box _ => {}
   |         ^^^^^ matches on the result of dereferencing `Box<i32>`
LL |         Box { .. } => {}
   |         ^^^^^^^^^^ matches directly on `Box<i32>`

error: aborting due to 1 previous error