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

ices/68394.rs: fixed with errors #266

Merged
merged 1 commit into from
Jan 22, 2020
Merged

ices/68394.rs: fixed with errors #266

merged 1 commit into from
Jan 22, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#68394

fn main() {
    let x = 255u8;
    let 0u8..=x = 0;
}
=== stdout ===
=== stderr ===
error[E0080]: runtime values cannot be referenced in patterns
 --> /home/runner/work/glacier/glacier/ices/68394.rs:3:15
  |
3 |     let 0u8..=x = 0;
  |               ^

warning: unused variable: `x`
 --> /home/runner/work/glacier/glacier/ices/68394.rs:2:9
  |
2 |     let x = 255u8;
  |         ^ help: consider prefixing with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0080]: runtime values cannot be referenced in patterns
 --> /home/runner/work/glacier/glacier/ices/68394.rs:3:15
  |
3 |     let 0u8..=x = 0;
  |               ^

warning: unused variable: `x`
 --> /home/runner/work/glacier/glacier/ices/68394.rs:2:9
  |
2 |     let x = 255u8;
  |         ^ help: consider prefixing with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

error: aborting due to previous error

For more information about this error, try `rustc --explain E0080`.
==============
@JohnTitor JohnTitor merged commit 9a778c2 into master Jan 22, 2020
@JohnTitor JohnTitor deleted the autofix/ices/68394.rs branch January 22, 2020 12:09
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