summary refs log tree commit diff
path: root/tests/ui/pattern/pattern-bad-ref-box-order.stderr
blob: a89d3ed21b629e1bdff9bd6a33e173903cb1df69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: switch the order of `ref` and `box`
  --> $DIR/pattern-bad-ref-box-order.rs:8:14
   |
LL |         Some(ref box _i) => {},
   |              ^^^^^^^
   |
help: swap them
   |
LL |         Some(box ref _i) => {},
   |              ~~~~~~~

error: aborting due to 1 previous error