Files
rust/tests/ui/parser/trait-object-polytrait-priority.rs
T
Christian Poveda 7ae2823bc6 Gate 2018 UI tests
2025-11-27 14:13:58 -05:00

11 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
}