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