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

ices/67377.rs: fixed with errors #332

Merged
merged 1 commit into from
Apr 16, 2020
Merged

ices/67377.rs: fixed with errors #332

merged 1 commit into from
Apr 16, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#67377

use std::marker::PhantomData;

enum Bug {
    V = [PhantomData; { [ () ].len() ].len() as isize,
    //                ^
    //                + ---- this brace is never closed!!!
}

fn main() {}
=== stdout ===
=== stderr ===
error: mismatched closing delimiter: `]`
 --> /home/runner/work/glacier/glacier/ices/67377.rs:4:38
  |
4 |     V = [PhantomData; { [ () ].len() ].len() as isize,
  |         -             -              ^ mismatched closing delimiter
  |         |             |
  |         |             unclosed delimiter
  |         closing delimiter possibly meant for this

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
error: mismatched closing delimiter: `]`
 --> /home/runner/work/glacier/glacier/ices/67377.rs:4:38
  |
4 |     V = [PhantomData; { [ () ].len() ].len() as isize,
  |         -             -              ^ mismatched closing delimiter
  |         |             |
  |         |             unclosed delimiter
  |         closing delimiter possibly meant for this

error: aborting due to previous error

==============
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 2de6b02 into master Apr 16, 2020
@JohnTitor JohnTitor deleted the autofix/ices/67377.rs branch April 16, 2020 12:27
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