blob: 63e8b2ba002a637076224f1f895df137c1be904c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#![allow(unused)]
struct PersonalityInventory {
expressivity: f32,
instrumentality: f32
}
impl PersonalityInventory {
fn expressivity(&self) -> f32 {
match *self {
PersonalityInventory { expressivity: exp, ... } => exp
//~^ ERROR expected field pattern, found `...`
}
}
}
fn main() {}
|