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

ices/94599.rs: fixed with errors #1163

Merged
merged 1 commit into from
Mar 8, 2022
Merged

ices/94599.rs: fixed with errors #1163

merged 1 commit into from
Mar 8, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 8, 2022

Issue: rust-lang/rust#94599

pub fn main() {
  (||{})(format!("{}", (||format!("{}", "s"))()));
}
=== stdout ===
=== stderr ===
error[E0057]: this function takes 0 arguments but 1 argument was supplied
 --> /home/runner/work/glacier/glacier/ices/94599.rs:2:3
  |
2 |   (||{})(format!("{}", (||format!("{}", "s"))()));
  |   ^^^^^^ --------------------------------------- supplied 1 argument
  |   |
  |   expected 0 arguments

error: aborting due to previous error

For more information about this error, try `rustc --explain E0057`.
==============

=== stdout ===
=== stderr ===
error[E0057]: this function takes 0 arguments but 1 argument was supplied
 --> /home/runner/work/glacier/glacier/ices/94599.rs:2:3
  |
2 |   (||{})(format!("{}", (||format!("{}", "s"))()));
  |   ^^^^^^ --------------------------------------- supplied 1 argument
  |   |
  |   expected 0 arguments

error: aborting due to previous error

For more information about this error, try `rustc --explain E0057`.
==============
@Alexendoo Alexendoo merged commit 92427c0 into master Mar 8, 2022
@Alexendoo Alexendoo deleted the autofix/ices/94599.rs branch March 8, 2022 16:48
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