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

ices/85871.sh: fixed with errors #849

Merged
merged 1 commit into from
Jun 25, 2021
Merged

ices/85871.sh: fixed with errors #849

merged 1 commit into from
Jun 25, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#85871

#!/bin/bash

rustc -Z thir-unsafeck=yes - <<'EOF'
struct Bug {
    inner: [(); match || 1 {
        n => n(),
    }],
}

fn main() {}
EOF
=== stdout ===
=== stderr ===
error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
 --> <anon>:3:14
  |
3 |         n => n(),
  |              ^^^

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
 --> <anon>:3:14
  |
3 |         n => n(),
  |              ^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0015`.
==============
@JohnTitor JohnTitor merged commit 52c0010 into master Jun 25, 2021
@JohnTitor JohnTitor deleted the autofix/ices/85871.sh branch June 25, 2021 12:08
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