about summary refs log tree commit diff
path: root/tests/ui/parser/trait-object-polytrait-priority.rs
blob: e7f085104ae9b45e8cdba2b1705672442fb68ca1 (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 `+`, not `&for<'a> Trait<'a>`
    //~| HELP try adding parentheses
}