Skip to content

Expected type panic in parsing array type #39616

Closed
@leonardo-m

Description

@leonardo-m
fn foo(a: [0; 1]) {}
fn main() {}

nightly-x86_64-pc-windows-gnu, rustc 1.17.0-nightly (ea7a648 2017-02-04)

error: expected type, found `0`
 --> test.rs:1:12
  |
1 | fn foo(a: [0; 1]) {}
  |            ^


error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.

thread 'rustc' panicked at 'internal error: entered unreachable code', C:\bot\slave\nightly-dist-rustc-win-gnu-64\build\src\libsyntax\parse\parser.rs:2649

Metadata

Metadata

Assignees

Labels

I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions