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

ices/92481.rs: fixed with errors #1461

Merged
merged 1 commit into from
Dec 11, 2022
Merged

ices/92481.rs: fixed with errors #1461

merged 1 commit into from
Dec 11, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 9, 2022

Issue: rust-lang/rust#92481

fn r({){Ok{d..||_=m
=== stdout ===
=== stderr ===
error: this file contains an unclosed delimiter
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:21
  |
1 | fn r({){Ok{d..||_=m
  |        -  -         ^
  |        |  |
  |        |  unclosed delimiter
  |        unclosed delimiter

error: expected parameter name, found `{`
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:6
  |
1 | fn r({){Ok{d..||_=m
  |      ^ expected parameter name

error: expected one of `,`, `:`, or `}`, found `..`
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:6
  |
1 | fn r({){Ok{d..||_=m
  |      ^      -^
  |      |      |
  |      |      help: `}` may belong here
  |      unclosed delimiter

error[E0425]: cannot find value `d` in this scope
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:12
  |
1 | fn r({){Ok{d..||_=m
  |            ^ not found in this scope

error[E0425]: cannot find value `m` in this scope
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:19
  |
1 | fn r({){Ok{d..||_=m
  |                   ^ not found in this scope

error[E0559]: variant `Result<_, _>::Ok` has no field named `d`
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:12
  |
1 | fn r({){Ok{d..||_=m
  |            ^ field does not exist
  |
help: `Result<_, _>::Ok` is a tuple variant, use the appropriate syntax
  |
1 | fn r({){Result<_, _>::Ok(/* fields */)
  |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:9
  |
1 | fn r({){Ok{d..||_=m
  |        -^^^^^^^^^^^^ expected `()`, found enum `Result`
  |        |
  |        help: a return type might be missing here: `-> _`
  |
  = note: expected unit type `()`
                  found enum `Result<_, _>`

error: aborting due to 7 previous errors

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

=== stdout ===
=== stderr ===
error: this file contains an unclosed delimiter
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:21
  |
1 | fn r({){Ok{d..||_=m
  |        -  -         ^
  |        |  |
  |        |  unclosed delimiter
  |        unclosed delimiter

error: expected parameter name, found `{`
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:6
  |
1 | fn r({){Ok{d..||_=m
  |      ^ expected parameter name

error: expected one of `,`, `:`, or `}`, found `..`
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:6
  |
1 | fn r({){Ok{d..||_=m
  |      ^      -^
  |      |      |
  |      |      help: `}` may belong here
  |      unclosed delimiter

error[E0425]: cannot find value `d` in this scope
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:12
  |
1 | fn r({){Ok{d..||_=m
  |            ^ not found in this scope

error[E0425]: cannot find value `m` in this scope
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:19
  |
1 | fn r({){Ok{d..||_=m
  |                   ^ not found in this scope

error[E0559]: variant `Result<_, _>::Ok` has no field named `d`
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:12
  |
1 | fn r({){Ok{d..||_=m
  |            ^ field does not exist
  |
help: `Result<_, _>::Ok` is a tuple variant, use the appropriate syntax
  |
1 | fn r({){Result<_, _>::Ok(/* fields */)
  |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/92481.rs:1:9
  |
1 | fn r({){Ok{d..||_=m
  |        -^^^^^^^^^^^^ expected `()`, found enum `Result`
  |        |
  |        help: a return type might be missing here: `-> _`
  |
  = note: expected unit type `()`
                  found enum `Result<_, _>`

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0308, E0425, E0559.
For more information about an error, try `rustc --explain E0308`.
==============
@JohnTitor JohnTitor merged commit 9a203d9 into master Dec 11, 2022
@JohnTitor JohnTitor deleted the autofix/ices/92481.rs branch December 11, 2022 00:47
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