mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 17:18:42 +00:00
18 lines
364 B
Rust
18 lines
364 B
Rust
// Regression test for issues #100790 and #106439.
|
|
//@ run-rustfix
|
|
|
|
#![allow(dead_code)]
|
|
|
|
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() {}
|