rust/tests/ui/error-codes/E0164.rs

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

15 lines
153 B
Rust
Raw Normal View History

enum Foo {}
impl Foo {
const B: u8 = 0;
}
2016-06-01 14:30:13 +00:00
fn bar(foo: Foo) -> u32 {
match foo {
Foo::B(i) => i, //~ ERROR E0164
}
}
fn main() {
}