mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
8 lines
232 B
Rust
8 lines
232 B
Rust
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`
|
|
}
|