about summary refs log tree commit diff
path: root/tests/ui/parser/trait-object-polytrait-priority.rs
blob: 85568f0fe1b18a42d185be22ba797a5fe5e0b2b6 (plain)
1
2
3
4
5
6
7
8
9
#![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 `+`
    //~| HELP try adding parentheses
}