about summary refs log tree commit diff
path: root/tests/ui/where-clauses/where-clause-placement-type-alias.rs
blob: 1f3b044c8119b8b35b351c5319a83748f0e0167d (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ check-fail

// Fine, but lints as unused
type Foo where u32: Copy = ();
// Not fine.
type Bar = () where u32: Copy;
//~^ ERROR where clauses are not allowed
type Baz = () where;
//~^ ERROR where clauses are not allowed

fn main() {}