blob: 360e7939c955655eda0bb08eb76c95e53b778b7e [file] [log] [blame]
// compile-flags: -Z parse-only -Z continue-parse-after-error
struct S<
T: 'a + Tr, // OK
T: Tr + 'a, // OK
T: 'a, // OK
T:, // OK
T: ?for<'a> Trait, // OK
T: Tr +, // OK
T: ?'a, //~ ERROR `?` may only modify trait bounds, not lifetime bounds
>;
fn main() {}