summaryrefslogtreecommitdiffstats
path: root/tests/ui/mut/mut-ref.stderr
blob: e6d4901aafb17de3661444d0f3e8aaa22992605e (plain)
1
2
3
4
5
6
7
8
error: the order of `mut` and `ref` is incorrect
  --> $DIR/mut-ref.rs:2:9
   |
LL |     let mut ref x = 10;
   |         ^^^^^^^ help: try switching the order: `ref mut`

error: aborting due to previous error