mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
11 lines
280 B
Rust
11 lines
280 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
|
|
//~| SUGGESTION &(for<'a> Trait<'a> + 'static)
|
|
}
|