rust/tests/ui/parser/trait-object-polytrait-priority.rs
2025-11-27 14:13:58 -05:00

10 lines
226 B
Rust

//@ edition:2015..2021
#![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
}