2023-01-06 10:47:21 -06:00
|
|
|
// Regression test for issues #100790 and #106439.
|
|
|
|
//@ run-rustfix
|
|
|
|
|
2023-12-27 16:11:58 -06:00
|
|
|
pub struct Example(#[allow(dead_code)] usize)
|
2023-01-06 10:47:21 -06:00
|
|
|
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() {}
|