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