summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-where-clause-before-tuple-struct-body-0.fixed
blob: 227c40e97c0a3d5c89c6c77fb4a8ff8c94e185b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Regression test for issues #100790 and #106439.
// run-rustfix

pub struct Example(usize)
where
    (): Sized;
//~^^^ ERROR where clauses are not allowed before tuple struct bodies

struct _Demo(pub usize, usize)
where
    (): Sized,
    String: Clone;
//~^^^^ ERROR where clauses are not allowed before tuple struct bodies

fn main() {}