2023-01-06 17:47:21 +01:00
|
|
|
// Regression test for issues #100790 and #106439.
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ run-rustfix
|
2023-01-06 17:47:21 +01:00
|
|
|
|
|
|
|
|
pub struct Example
|
|
|
|
|
where
|
|
|
|
|
(): Sized,
|
2024-07-30 12:29:20 -04:00
|
|
|
(#[allow(dead_code)] usize);
|
2023-01-06 17:47:21 +01:00
|
|
|
//~^^^ 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() {}
|