summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-ref-dyn-mut.stderr
blob: c048c8ea1b0dd581841bc37d1bd40082eab2e8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error: `mut` must precede `dyn`
  --> $DIR/recover-ref-dyn-mut.rs:5:12
   |
LL |     let r: &dyn mut Trait;
   |            ^^^^^^^^ help: place `mut` before `dyn`: `&mut dyn`

error[E0405]: cannot find trait `Trait` in this scope
  --> $DIR/recover-ref-dyn-mut.rs:5:21
   |
LL |     let r: &dyn mut Trait;
   |                     ^^^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0405`.