rust/tests/ui/parser/issues/issue-68890-2.rs

6 lines
162 B
Rust

fn main() {}
type X<'a> = (?'a) +;
//~^ ERROR `?` may only modify trait bounds, not lifetime bounds
//~| ERROR at least one trait is required for an object type