rust/tests/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.rs

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

18 lines
344 B
Rust
Raw Normal View History

#![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() {}