mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
28 lines
721 B
Plaintext
28 lines
721 B
Plaintext
|
error[E0061]: this enum variant takes 1 argument but 4 arguments were supplied
|
||
|
--> $DIR/issue-112507.rs:6:14
|
||
|
|
|
||
|
LL | let _a = Value::Float(
|
||
|
| ^^^^^^^^^^^^
|
||
|
LL | 0,
|
||
|
| - unexpected argument of type `{integer}`
|
||
|
LL | None,
|
||
|
LL | None,
|
||
|
| ---- unexpected argument of type `Option<_>`
|
||
|
LL | 0,
|
||
|
| - unexpected argument of type `{integer}`
|
||
|
|
|
||
|
note: tuple variant defined here
|
||
|
--> $DIR/issue-112507.rs:2:5
|
||
|
|
|
||
|
LL | Float(Option<f64>),
|
||
|
| ^^^^^
|
||
|
help: remove the extra arguments
|
||
|
|
|
||
|
LL ~ ,
|
||
|
LL ~ None);
|
||
|
|
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0061`.
|