mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
692bc344d5
Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
10 lines
229 B
Rust
10 lines
229 B
Rust
#![allow(bare_trait_objects)]
|
|
|
|
trait Trait<'a> {}
|
|
|
|
fn main() {
|
|
let _: &for<'a> Trait<'a> + 'static;
|
|
//~^ ERROR expected a path on the left-hand side of `+`, not `&for<'a> Trait<'a>`
|
|
//~| HELP try adding parentheses
|
|
}
|