]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-46718-struct-pattern-dotdotdot.rs
Remove "here" from "expected one of X here"
[rust.git] / src / test / ui / did_you_mean / issue-46718-struct-pattern-dotdotdot.rs
1 #![allow(unused)]
2
3 struct PersonalityInventory {
4     expressivity: f32,
5     instrumentality: f32
6 }
7
8 impl PersonalityInventory {
9     fn expressivity(&self) -> f32 {
10         match *self {
11             PersonalityInventory { expressivity: exp, ... } => exp
12             //~^ ERROR expected field pattern, found `...`
13         }
14     }
15 }
16
17 fn main() {}