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

ices/93646.rs: fixed with errors #1134

Merged
merged 1 commit into from
Feb 13, 2022
Merged

ices/93646.rs: fixed with errors #1134

merged 1 commit into from
Feb 13, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#93646

struct X<const N: usize = {
    let s: usize; s + 1
}>;

pub fn main() {}
=== stdout ===
=== stderr ===
error[E0381]: use of possibly-uninitialized variable: `s`
 --> /home/runner/work/glacier/glacier/ices/93646.rs:2:19
  |
2 |     let s: usize; s + 1
  |                   ^ use of possibly-uninitialized `s`

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0381]: use of possibly-uninitialized variable: `s`
 --> /home/runner/work/glacier/glacier/ices/93646.rs:2:19
  |
2 |     let s: usize; s + 1
  |                   ^ use of possibly-uninitialized `s`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0381`.
==============
@Alexendoo Alexendoo merged commit 6951405 into master Feb 13, 2022
@Alexendoo Alexendoo deleted the autofix/ices/93646.rs branch February 13, 2022 12:13
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