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

ices/94380.rs: fixed with errors #1219

Merged
merged 1 commit into from
Apr 16, 2022
Merged

ices/94380.rs: fixed with errors #1219

merged 1 commit into from
Apr 16, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#94380

struct Bug<A = [(); (let a = (), 1).1]> {
    a: A
}

fn main() {}
=== stdout ===
=== stderr ===
error: `let` expressions are not supported here
 --> /home/runner/work/glacier/glacier/ices/94380.rs:1:22
  |
1 | struct Bug<A = [(); (let a = (), 1).1]> {
  |                      ^^^^^^^^^^
  |
  = note: only supported directly in conditions of `if` and `while` expressions

error[E0658]: `let` expressions in this position are unstable
 --> /home/runner/work/glacier/glacier/ices/94380.rs:1:22
  |
1 | struct Bug<A = [(); (let a = (), 1).1]> {
  |                      ^^^^^^^^^^
  |
  = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
  = help: add `#![feature(let_chains)]` to the crate attributes to enable

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error: `let` expressions are not supported here
 --> /home/runner/work/glacier/glacier/ices/94380.rs:1:22
  |
1 | struct Bug<A = [(); (let a = (), 1).1]> {
  |                      ^^^^^^^^^^
  |
  = note: only supported directly in conditions of `if` and `while` expressions

error[E0658]: `let` expressions in this position are unstable
 --> /home/runner/work/glacier/glacier/ices/94380.rs:1:22
  |
1 | struct Bug<A = [(); (let a = (), 1).1]> {
  |                      ^^^^^^^^^^
  |
  = note: see issue #53667 <rust-lang/rust#53667> for more information
  = help: add `#![feature(let_chains)]` to the crate attributes to enable

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
==============
@Alexendoo Alexendoo merged commit ccba7e6 into master Apr 16, 2022
@Alexendoo Alexendoo deleted the autofix/ices/94380.rs branch April 16, 2022 12:08
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