mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
10 lines
184 B
Rust
10 lines
184 B
Rust
struct S(u8, u16);
|
|
type A = S;
|
|
|
|
fn main() {
|
|
let s = A(0, 1); //~ ERROR expected function
|
|
match s {
|
|
A(..) => {} //~ ERROR expected tuple struct or tuple variant
|
|
}
|
|
}
|