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

ices/105228.rs: fixed with errors #1589

Merged
merged 1 commit into from
May 20, 2023
Merged

ices/105228.rs: fixed with errors #1589

merged 1 commit into from
May 20, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#105228

#![feature(cfg_eval)]
#![feature(stmt_expr_attributes)]

#[cfg_eval]
fn main() {
    #[cfg_eval]
    let _ = #[cfg(FALSE)] 0;
    //~^ ERROR removing an expression is not supported in this position
}
=== stdout ===
=== stderr ===
error: removing an expression is not supported in this position
 --> /home/runner/work/glacier/glacier/ices/105228.rs:7:13
  |
7 |     let _ = #[cfg(FALSE)] 0;
  |             ^^^^^^^^^^^^^

error: expected expression, found `;`
 --> /home/runner/work/glacier/glacier/ices/105228.rs:7:28
  |
7 |     let _ = #[cfg(FALSE)] 0;
  |                            ^ expected expression

error: removing an expression is not supported in this position
 --> /home/runner/work/glacier/glacier/ices/105228.rs:7:13
  |
7 |     let _ = #[cfg(FALSE)] 0;
  |             ^^^^^^^^^^^^^

error: aborting due to 3 previous errors

==============

=== stdout ===
=== stderr ===
error: removing an expression is not supported in this position
 --> /home/runner/work/glacier/glacier/ices/105228.rs:7:13
  |
7 |     let _ = #[cfg(FALSE)] 0;
  |             ^^^^^^^^^^^^^

error: expected expression, found `;`
 --> /home/runner/work/glacier/glacier/ices/105228.rs:7:28
  |
7 |     let _ = #[cfg(FALSE)] 0;
  |                            ^ expected expression

error: removing an expression is not supported in this position
 --> /home/runner/work/glacier/glacier/ices/105228.rs:7:13
  |
7 |     let _ = #[cfg(FALSE)] 0;
  |             ^^^^^^^^^^^^^

error: aborting due to 3 previous errors

==============
@JohnTitor JohnTitor merged commit 0d7d5f0 into master May 20, 2023
@JohnTitor JohnTitor deleted the autofix/ices/105228.rs branch May 20, 2023 05:43
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