]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/trait-object-polytrait-priority.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / trait-object-polytrait-priority.rs
1 #![allow(bare_trait_objects)]
2
3 trait Trait<'a> {}
4
5 fn main() {
6     let _: &for<'a> Trait<'a> + 'static;
7     //~^ ERROR expected a path on the left-hand side of `+`, not `&for<'a> Trait<'a>`
8     //~| HELP try adding parentheses
9     //~| SUGGESTION &(for<'a> Trait<'a> + 'static)
10 }