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