2019-05-28 13:45:27 -05:00
|
|
|
#![allow(bare_trait_objects)]
|
|
|
|
|
2017-03-16 16:47:32 -05:00
|
|
|
trait Trait<'a> {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _: &for<'a> Trait<'a> + 'static;
|
2017-12-19 14:40:17 -06:00
|
|
|
//~^ ERROR expected a path on the left-hand side of `+`, not `&for<'a> Trait<'a>`
|
2017-03-16 16:47:32 -05:00
|
|
|
//~| HELP try adding parentheses
|
2017-12-19 14:40:17 -06:00
|
|
|
//~| SUGGESTION &(for<'a> Trait<'a> + 'static)
|
2017-03-16 16:47:32 -05:00
|
|
|
}
|