mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
18 lines
344 B
Rust
18 lines
344 B
Rust
#![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() {}
|