mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
13 lines
179 B
Rust
13 lines
179 B
Rust
//@ run-pass
|
|
#[derive(Eq, PartialEq)]
|
|
pub struct Data([u8; 4]);
|
|
|
|
const DATA: Data = Data([1, 2, 3, 4]);
|
|
|
|
fn main() {
|
|
match DATA {
|
|
DATA => (),
|
|
_ => (),
|
|
}
|
|
}
|