rust/tests/ui/parser/recover/recover-where-clause-before-tuple-struct-body-0.rs
2024-08-03 07:57:31 -04:00

18 lines
366 B
Rust

// Regression test for issues #100790 and #106439.
//@ run-rustfix
pub struct Example
where
(): Sized,
(#[allow(dead_code)] usize);
//~^^^ ERROR where clauses are not allowed before tuple struct bodies
struct _Demo
where
(): Sized,
String: Clone,
(pub usize, usize);
//~^^^^ ERROR where clauses are not allowed before tuple struct bodies
fn main() {}