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

Commit

Permalink
ices/78722.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== 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/78722.rs:2:12
  |
2 | #![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/78722.rs:11:20
   |
11 |         let f: F = async { 1 };
   |                    ^^^^^^^^^^^

error[E0493]: destructors cannot be evaluated at compile-time
  --> /home/runner/work/glacier/glacier/ices/78722.rs:11:13
   |
11 |         let f: F = async { 1 };
   |             ^ constants cannot evaluate destructors
12 |         1
13 |     }],
   |     - value is dropped here

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

For more information about this error, try `rustc --explain E0493`.
==============
  • Loading branch information
rustbot committed Nov 15, 2020
1 parent dfcf9b0 commit 9694ddb
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 9694ddb

Please sign in to comment.