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

ices/71297.rs: fixed with errors #362

Merged
merged 1 commit into from
May 11, 2020
Merged

ices/71297.rs: fixed with errors #362

merged 1 commit into from
May 11, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#71297

async fn a(x | s: String) {}

fn main() {}
=== stdout ===
=== stderr ===
error: an or-pattern parameter must be wrapped in parenthesis
 --> /home/runner/work/glacier/glacier/ices/71297.rs:1:12
  |
1 | async fn a(x | s: String) {}
  |            ^^^^^ help: wrap the pattern in parenthesis: `(x | s)`

error[E0408]: variable `x` is not bound in all patterns
 --> /home/runner/work/glacier/glacier/ices/71297.rs:1:16
  |
1 | async fn a(x | s: String) {}
  |            -   ^ pattern doesn't bind `x`
  |            |
  |            variable not in all patterns

error[E0408]: variable `s` is not bound in all patterns
 --> /home/runner/work/glacier/glacier/ices/71297.rs:1:12
  |
1 | async fn a(x | s: String) {}
  |            ^   - variable not in all patterns
  |            |
  |            pattern doesn't bind `s`

error: aborting due to 3 previous errors

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

=== stdout ===
=== stderr ===
error: an or-pattern parameter must be wrapped in parenthesis
 --> /home/runner/work/glacier/glacier/ices/71297.rs:1:12
  |
1 | async fn a(x | s: String) {}
  |            ^^^^^ help: wrap the pattern in parenthesis: `(x | s)`

error[E0408]: variable `x` is not bound in all patterns
 --> /home/runner/work/glacier/glacier/ices/71297.rs:1:16
  |
1 | async fn a(x | s: String) {}
  |            -   ^ pattern doesn't bind `x`
  |            |
  |            variable not in all patterns

error[E0408]: variable `s` is not bound in all patterns
 --> /home/runner/work/glacier/glacier/ices/71297.rs:1:12
  |
1 | async fn a(x | s: String) {}
  |            ^   - variable not in all patterns
  |            |
  |            pattern doesn't bind `s`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0408`.
==============
@JohnTitor JohnTitor merged commit 6510197 into master May 11, 2020
@JohnTitor JohnTitor deleted the autofix/ices/71297.rs branch May 11, 2020 12:40
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