]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/type-alias-where.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / type-alias-where.rs
1 // check-fail
2
3 // Fine, but lints as unused
4 type Foo where u32: Copy = ();
5 // Not fine.
6 type Bar = () where u32: Copy;
7 //~^ ERROR where clauses are not allowed
8 type Baz = () where;
9 //~^ ERROR where clauses are not allowed
10
11 fn main() {}