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

ices/78721.rs: fixed with errors #543

Merged
merged 1 commit into from
Nov 16, 2020
Merged

ices/78721.rs: fixed with errors #543

merged 1 commit into from
Nov 16, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#78721

#![feature(impl_trait_in_bindings)]

struct Bug {
    V1: [(); {
        let f: impl core::future::Future<Output = u8> = async { 1 };
        1
    }],
}

fn main() {}
=== stdout ===
=== stderr ===
warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/78721.rs:1:12
  |
1 | #![feature(impl_trait_in_bindings)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #63065 <https:/rust-lang/rust/issues/63065> for more information

error: `async` blocks are not allowed in constants
 --> /home/runner/work/glacier/glacier/ices/78721.rs:5:57
  |
5 |         let f: impl core::future::Future<Output = u8> = async { 1 };
  |                                                         ^^^^^^^^^^^

error[E0493]: destructors cannot be evaluated at compile-time
 --> /home/runner/work/glacier/glacier/ices/78721.rs:5:13
  |
5 |         let f: impl core::future::Future<Output = u8> = async { 1 };
  |             ^ constants cannot evaluate destructors
6 |         1
7 |     }],
  |     - value is dropped here

error: aborting due to 2 previous errors; 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/78721.rs:1:12
  |
1 | #![feature(impl_trait_in_bindings)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #63065 <rust-lang/rust#63065> for more information

error: `async` blocks are not allowed in constants
 --> /home/runner/work/glacier/glacier/ices/78721.rs:5:57
  |
5 |         let f: impl core::future::Future<Output = u8> = async { 1 };
  |                                                         ^^^^^^^^^^^

error[E0493]: destructors cannot be evaluated at compile-time
 --> /home/runner/work/glacier/glacier/ices/78721.rs:5:13
  |
5 |         let f: impl core::future::Future<Output = u8> = async { 1 };
  |             ^ constants cannot evaluate destructors
6 |         1
7 |     }],
  |     - value is dropped here

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0493`.
==============
@Alexendoo Alexendoo merged commit 26ed8bf into master Nov 16, 2020
@Alexendoo Alexendoo deleted the autofix/ices/78721.rs branch November 16, 2020 15:40
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