ac56007ea7
This reverts commit13314df21b
, reversing changes made to6e534c73c3
.
16 lines
362 B
Rust
16 lines
362 B
Rust
// Regression test for issues #100790 and #106439.
|
|
//@ run-rustfix
|
|
|
|
pub struct Example(#[allow(dead_code)] usize)
|
|
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() {}
|