mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
10 lines
271 B
Rust
10 lines
271 B
Rust
// Test that the parser detects `&dyn mut`, offers a help message, and
|
|
// recovers.
|
|
|
|
fn main() {
|
|
let r: &dyn mut Trait;
|
|
//~^ ERROR: `mut` must precede `dyn`
|
|
//~| HELP: place `mut` before `dyn`
|
|
//~| ERROR: cannot find trait `Trait` in this scope [E0405]
|
|
}
|