about summary refs log tree commit diff
path: root/tests/ui/pattern/pattern-bad-ref-box-order.stderr
blob: 6f47f704688baf58c41c28c69cd1a98161e945a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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(ref box _i) => {},
LL +         Some(box ref _i) => {},
   |

error: aborting due to 1 previous error