blob: ab40bf580ea8ff7adb3a3eb11bf5f7d74743bcb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
pub enum Enum {
A(usize),
}
impl Enum {
fn foo(&self) -> () {
match self {
Self::A => (),
//~^ ERROR expected unit struct, unit variant or constant, found tuple variant
}
}
}
fn main() {}
|