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

ices/93647-2.rs: fixed with errors #1111

Merged
merged 1 commit into from
Feb 7, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 7, 2022

Issue: rust-lang/rust#93647

struct X<const N: usize = {
    || {}
}>;
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `93647_2`
 --> /home/runner/work/glacier/glacier/ices/93647-2.rs:1:1
  |
1 | / struct X<const N: usize = {
2 | |     || {}
3 | | }>;
  | |___^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/93647-2.rs`

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/93647-2.rs:2:5
  |
2 |     || {}
  |     ^^^^^ expected `usize`, found closure
  |
  = note: expected type `usize`
          found closure `[closure@/home/runner/work/glacier/glacier/ices/93647-2.rs:2:5: 2:10]`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0308, E0601.
For more information about an error, try `rustc --explain E0308`.
==============

=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `93647_2`
 --> /home/runner/work/glacier/glacier/ices/93647-2.rs:1:1
  |
1 | / struct X<const N: usize = {
2 | |     || {}
3 | | }>;
  | |___^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/93647-2.rs`

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/93647-2.rs:2:5
  |
2 |     || {}
  |     ^^^^^ expected `usize`, found closure
  |
  = note: expected type `usize`
          found closure `[closure@/home/runner/work/glacier/glacier/ices/93647-2.rs:2:5: 2:10]`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0308, E0601.
For more information about an error, try `rustc --explain E0308`.
==============
@Alexendoo Alexendoo merged commit 25eb7c4 into master Feb 7, 2022
@Alexendoo Alexendoo deleted the autofix/ices/93647-2.rs branch February 7, 2022 12:39
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.

None yet

2 participants