]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bounds-type.rs
Auto merge of #51285 - Mark-Simulacrum:remove-quote_apis, r=Manishearth
[rust.git] / src / test / ui / parser / bounds-type.rs
1 // compile-flags: -Z parse-only -Z continue-parse-after-error
2
3 struct S<
4     T: 'a + Tr, // OK
5     T: Tr + 'a, // OK
6     T: 'a, // OK
7     T:, // OK
8     T: ?for<'a> Trait, // OK
9     T: Tr +, // OK
10     T: ?'a, //~ ERROR `?` may only modify trait bounds, not lifetime bounds
11 >;
12
13 fn main() {}