]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/recover-where-clause-before-tuple-struct-body-0.rs
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / recover-where-clause-before-tuple-struct-body-0.rs
1 // Regression test for issues #100790 and #106439.
2 // run-rustfix
3
4 pub struct Example
5 where
6     (): Sized,
7 (usize);
8 //~^^^ ERROR where clauses are not allowed before tuple struct bodies
9
10 struct _Demo
11 where
12     (): Sized,
13     String: Clone,
14 (pub usize, usize);
15 //~^^^^ ERROR where clauses are not allowed before tuple struct bodies
16
17 fn main() {}