]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bounds-type-where.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / parser / bounds-type-where.rs
1 type A where for<'a> for<'b> Trait1 + ?Trait2: 'a + Trait = u8; // OK
2 type A where T: Trait, = u8; // OK
3 type A where T: = u8; // OK
4 type A where T:, = u8; // OK
5 type A where T: Trait + Trait = u8; // OK
6 type A where = u8; // OK
7 type A where T: Trait + = u8; // OK
8 type A where T, = u8;
9 //~^ ERROR expected one of `!`, `(`, `+`, `::`, `:`, `<`, `==`, or `=`, found `,`
10
11 fn main() {}