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

ices/66706-1.rs: fixed with errors #331

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#66706

fn bug() {
    [0; [|&_: _ &_| {}; 0 ].len()]
}

fn main() {}
=== stdout ===
=== stderr ===
error: expected `,`, found `&`
 --> /home/runner/work/glacier/glacier/ices/66706-1.rs:2:17
  |
2 |     [0; [|&_: _ &_| {}; 0 ].len()]
  |                -^ expected `,`
  |                |
  |                help: missing `,`

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/66706-1.rs:2:5
  |
1 | fn bug() {
  |          - help: try adding a return type: `-> [{integer}; _]`
2 |     [0; [|&_: _ &_| {}; 0 ].len()]
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found array `[{integer}; _]`

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error: expected `,`, found `&`
 --> /home/runner/work/glacier/glacier/ices/66706-1.rs:2:17
  |
2 |     [0; [|&_: _ &_| {}; 0 ].len()]
  |                -^ expected `,`
  |                |
  |                help: missing `,`

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/66706-1.rs:2:5
  |
1 | fn bug() {
  |          - help: try adding a return type: `-> [{integer}; _]`
2 |     [0; [|&_: _ &_| {}; 0 ].len()]
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found array `[{integer}; _]`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.
==============
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fixed.

@JohnTitor JohnTitor merged commit 625f555 into master Apr 16, 2020
@JohnTitor JohnTitor deleted the autofix/ices/66706-1.rs branch April 16, 2020 12:26
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