mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
16 lines
341 B
Rust
16 lines
341 B
Rust
// Regression test for issues #100790 and #106439.
|
|
// run-rustfix
|
|
|
|
pub struct Example(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() {}
|