mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
473 B
Text
15 lines
473 B
Text
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`.
|