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

ices/83531.rs: fixed with errors #1625

Merged
merged 1 commit into from
Sep 17, 2023
Merged

ices/83531.rs: fixed with errors #1625

merged 1 commit into from
Sep 17, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83531

union Foo {
    a: isize,
    b: &VTable,
}
enum Bar {
    Boo = [Foo { b: () }.a][3],
}
=== stdout ===
=== stderr ===
error[E0106]: missing lifetime specifier
 --> /home/runner/work/glacier/glacier/ices/83531.rs:3:8
  |
3 |     b: &VTable,
  |        ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
1 ~ union Foo<'a> {
2 |     a: isize,
3 ~     b: &'a VTable,
  |

error[E0412]: cannot find type `VTable` in this scope
 --> /home/runner/work/glacier/glacier/ices/83531.rs:3:9
  |
3 |     b: &VTable,
  |         ^^^^^^ not found in this scope

error[E0601]: `main` function not found in crate `83531`
 --> /home/runner/work/glacier/glacier/ices/83531.rs:7:2
  |
7 | }
  |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83531.rs`

error: aborting due to 3 previous errors

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

=== stdout ===
=== stderr ===
error[E0106]: missing lifetime specifier
 --> /home/runner/work/glacier/glacier/ices/83531.rs:3:8
  |
3 |     b: &VTable,
  |        ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
1 ~ union Foo<'a> {
2 |     a: isize,
3 ~     b: &'a VTable,
  |

error[E0412]: cannot find type `VTable` in this scope
 --> /home/runner/work/glacier/glacier/ices/83531.rs:3:9
  |
3 |     b: &VTable,
  |         ^^^^^^ not found in this scope

error[E0601]: `main` function not found in crate `83531`
 --> /home/runner/work/glacier/glacier/ices/83531.rs:7:2
  |
7 | }
  |  ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83531.rs`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0106, E0412, E0601.
For more information about an error, try `rustc --explain E0106`.
==============
@JohnTitor JohnTitor merged commit 71046d3 into master Sep 17, 2023
@JohnTitor JohnTitor deleted the autofix/ices/83531.rs branch September 17, 2023 14:34
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