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

ices/66693.rs: fixed with errors #676

Merged
merged 1 commit into from
Mar 3, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

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

Issue: rust-lang/rust#66693

#![feature(const_panic)]

const C: () = {
    panic!(1234);
};

fn main() {}
=== stdout ===
=== stderr ===
error: argument to `panic!()` in a const context must have type `&str`
 --> /home/runner/work/glacier/glacier/ices/66693.rs:4:5
  |
4 |     panic!(1234);
  |     ^^^^^^^^^^^^^
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error: argument to `panic!()` in a const context must have type `&str`
 --> /home/runner/work/glacier/glacier/ices/66693.rs:4:5
  |
4 |     panic!(1234);
  |     ^^^^^^^^^^^^^
  |
  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

==============
@Alexendoo Alexendoo merged commit 740477f into master Mar 3, 2021
@Alexendoo Alexendoo deleted the autofix/ices/66693.rs branch March 3, 2021 13:50
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