mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
345 B
Rust
17 lines
345 B
Rust
// Regression test for issues #100790 and #106439.
|
|
// run-rustfix
|
|
|
|
pub struct Example
|
|
where
|
|
(): Sized,
|
|
(usize);
|
|
//~^^^ 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() {}
|