summaryrefslogtreecommitdiffstats
path: root/tests/ui/argument-suggestions/issue-112507.rs
blob: 61743c59a4aabd00e6a3b16cb6d1b48553e979c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
pub enum Value {
    Float(Option<f64>),
}

fn main() {
    let _a = Value::Float( //~ ERROR this enum variant takes 1 argument but 4 arguments were supplied
        0,
        None,
        None,
        0,
    );
}