rust/tests/ui/binding/match-larger-const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
179 B
Rust
Raw Normal View History

//@ run-pass
#[derive(Eq, PartialEq)]
pub struct Data([u8; 4]);
const DATA: Data = Data([1, 2, 3, 4]);
fn main() {
match DATA {
DATA => (),
_ => (),
}
}