You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rustc 1.14.0-nightly (3f4408347 2016-10-27)
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'global closures can't capture anything', ../src/librustc_passes/consts.rs:587
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Appears to be fixed on rustc 1.16.0-nightly (468227129 2017-01-03).
error[E0016]: blocks in constant functions are limited to items and tail expressions
--> test.rs:4:13
|
4 | let t = true;
| ^^^^
error[E0016]: blocks in constant functions are limited to items and tail expressions
--> test.rs:5:13
|
5 | let x = || t;
| ^^^^
error: aborting due to 2 previous errors
Activity
eddyb commentedon Nov 12, 2016
This sounds like a pass ordering issue, MIR check passes should come first (which would error about the variables).
Mark-Simulacrum commentedon Jan 5, 2017
Appears to be fixed on
rustc 1.16.0-nightly (468227129 2017-01-03).Mark-Simulacrum commentedon May 19, 2017
E-needstest as per previous comment.
Rollup merge of rust-lang#42230 - venkatagiri:ice_regression_tests, r…
Rollup merge of rust-lang#42230 - venkatagiri:ice_regression_tests, r…
Rollup merge of rust-lang#42230 - venkatagiri:ice_regression_tests, r…