mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
13 lines
217 B
Rust
13 lines
217 B
Rust
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,
|
|
);
|
|
}
|