mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-04 23:15:28 +00:00
9 lines
282 B
Rust
9 lines
282 B
Rust
// https://github.com/rust-lang/rust/issues/32086
|
|
struct S(u8);
|
|
const C: S = S(10);
|
|
|
|
fn main() {
|
|
let C(a) = S(11); //~ ERROR expected tuple struct or tuple variant, found constant `C`
|
|
let C(..) = S(11); //~ ERROR expected tuple struct or tuple variant, found constant `C`
|
|
}
|