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

ices/86082.rs: fixed with errors #893

Merged
merged 1 commit into from
Aug 3, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 3, 2021

Issue: rust-lang/rust#86082

fn main() {
    option_env!("\0")
}
=== stdout ===
=== stderr ===
error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/86082.rs:2:5
  |
1 | fn main() {
  |           - expected `()` because of default return type
2 |     option_env!("\0")
  |     ^^^^^^^^^^^^^^^^^ expected `()`, found enum `Option`
  |
  = note: expected unit type `()`
                  found enum `Option<&'static str>`
  = note: this error originates in the macro `option_env` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/86082.rs:2:5
  |
1 | fn main() {
  |           - expected `()` because of default return type
2 |     option_env!("\0")
  |     ^^^^^^^^^^^^^^^^^ expected `()`, found enum `Option`
  |
  = note: expected unit type `()`
                  found enum `Option<&'static str>`
  = note: this error originates in the macro `option_env` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
==============
@JohnTitor JohnTitor merged commit 60d52ca into master Aug 3, 2021
@JohnTitor JohnTitor deleted the autofix/ices/86082.rs branch August 3, 2021 13:48
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