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

ices/91502.rs: fixed with errors #1067

Merged
merged 1 commit into from
Dec 29, 2021
Merged

ices/91502.rs: fixed with errors #1067

merged 1 commit into from
Dec 29, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#91502

fn main() {
    Ok { ..0 > 0 }
}
=== stdout ===
=== stderr ===
error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/91502.rs:2:12
  |
2 |     Ok { ..0 > 0 }
  |            ^^^^^ expected enum `Result`, found `bool`
  |
  = note: expected enum `Result<_, _>`
             found type `bool`

error[E0436]: functional record update syntax requires a struct
 --> /home/runner/work/glacier/glacier/ices/91502.rs:2:12
  |
2 |     Ok { ..0 > 0 }
  |            ^^^^^

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/91502.rs:2:5
  |
1 | fn main() {
  |           - expected `()` because of default return type
2 |     Ok { ..0 > 0 }
  |     ^^^^^^^^^^^^^^ expected `()`, found enum `Result`
  |
  = note: expected unit type `()`
                  found enum `Result<_, _>`

error: aborting due to 3 previous errors

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

=== stdout ===
=== stderr ===
error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/91502.rs:2:12
  |
2 |     Ok { ..0 > 0 }
  |            ^^^^^ expected enum `Result`, found `bool`
  |
  = note: expected enum `Result<_, _>`
             found type `bool`

error[E0436]: functional record update syntax requires a struct
 --> /home/runner/work/glacier/glacier/ices/91502.rs:2:12
  |
2 |     Ok { ..0 > 0 }
  |            ^^^^^

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/91502.rs:2:5
  |
1 | fn main() {
  |           - expected `()` because of default return type
2 |     Ok { ..0 > 0 }
  |     ^^^^^^^^^^^^^^ expected `()`, found enum `Result`
  |
  = note: expected unit type `()`
                  found enum `Result<_, _>`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0308, E0436.
For more information about an error, try `rustc --explain E0308`.
==============
@Alexendoo Alexendoo merged commit 9301801 into master Dec 29, 2021
@Alexendoo Alexendoo deleted the autofix/ices/91502.rs branch December 29, 2021 12:44
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