Ad
  • Custom User Avatar

    Hi I wrote my program in Rust and get this feedback, what could be wrong?

    error[E0061]: this function takes 2 arguments but 1 argument was supplied
    --> src/lib.rs:94:31
    |
    94 | test.push(rng.gen_range(range.0..=range.1));
    | ^^^^^^^^^ ----------------- supplied 1 argument
    | |
    | expected 2 arguments

    error: aborting due to previous error

    For more information about this error, try rustc --explain E0061.
    error: could not compile qualified-rust.

    NOTE: Line numbers in error messages can be incorrect due to concatenation.