]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bounds-type.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / bounds-type.rs
1 // compile-flags: -Z parse-only
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() {}