Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/97197.rs: fixed with errors #1270

Merged
merged 1 commit into from
May 24, 2022
Merged

ices/97197.rs: fixed with errors #1270

merged 1 commit into from
May 24, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#97197

fn f() {
    g((), ());
}

pub fn g(a1: (), a2: bool, a3: bool, a4: bool, a5: bool, a6: ()) {}
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `97197`
 --> /home/runner/work/glacier/glacier/ices/97197.rs:5:68
  |
5 | pub fn g(a1: (), a2: bool, a3: bool, a4: bool, a5: bool, a6: ()) {}
  |                                                                    ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/97197.rs`

error[E0061]: this function takes 6 arguments but 2 arguments were supplied
 --> /home/runner/work/glacier/glacier/ices/97197.rs:2:5
  |
2 |     g((), ());
  |     ^-------- multiple arguments are missing
  |
note: function defined here
 --> /home/runner/work/glacier/glacier/ices/97197.rs:5:8
  |
5 | pub fn g(a1: (), a2: bool, a3: bool, a4: bool, a5: bool, a6: ()) {}
  |        ^ ------  --------  --------  --------  --------  ------
help: provide the arguments
  |
2 |     g((), {bool}, {bool}, {bool}, {bool}, ());
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0061, E0601.
For more information about an error, try `rustc --explain E0061`.
==============

=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `97197`
 --> /home/runner/work/glacier/glacier/ices/97197.rs:5:68
  |
5 | pub fn g(a1: (), a2: bool, a3: bool, a4: bool, a5: bool, a6: ()) {}
  |                                                                    ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/97197.rs`

error[E0061]: this function takes 6 arguments but 2 arguments were supplied
 --> /home/runner/work/glacier/glacier/ices/97197.rs:2:5
  |
2 |     g((), ());
  |     ^-------- multiple arguments are missing
  |
note: function defined here
 --> /home/runner/work/glacier/glacier/ices/97197.rs:5:8
  |
5 | pub fn g(a1: (), a2: bool, a3: bool, a4: bool, a5: bool, a6: ()) {}
  |        ^ ------  --------  --------  --------  --------  ------
help: provide the arguments
  |
2 |     g((), {bool}, {bool}, {bool}, {bool}, ());
  |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0061, E0601.
For more information about an error, try `rustc --explain E0061`.
==============
@JohnTitor JohnTitor merged commit c52b15e into master May 24, 2022
@JohnTitor JohnTitor deleted the autofix/ices/97197.rs branch May 24, 2022 12:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants