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

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#61774

fn main() {
    let _: [_; unsafe { std::mem::transmute(|| {}) }];
}
=== stdout ===
=== stderr ===
error: `std::intrinsics::transmute` is not yet stable as a const fn
 --> /home/runner/work/glacier/glacier/ices/61774.rs:2:25
  |
2 |     let _: [_; unsafe { std::mem::transmute(|| {}) }];
  |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(const_transmute)]` to the crate attributes to enable

error[E0080]: evaluation of constant value failed
 --> /home/runner/work/glacier/glacier/ices/61774.rs:2:25
  |
2 |     let _: [_; unsafe { std::mem::transmute(|| {}) }];
  |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^ tried to transmute from [closure@/home/runner/work/glacier/glacier/ices/61774.rs:2:45: 2:50] to usize, but their sizes differed

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error: `std::intrinsics::transmute` is not yet stable as a const fn
 --> /home/runner/work/glacier/glacier/ices/61774.rs:2:25
  |
2 |     let _: [_; unsafe { std::mem::transmute(|| {}) }];
  |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(const_transmute)]` to the crate attributes to enable

error[E0080]: evaluation of constant value failed
 --> /home/runner/work/glacier/glacier/ices/61774.rs:2:25
  |
2 |     let _: [_; unsafe { std::mem::transmute(|| {}) }];
  |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^ tried to transmute from [closure@/home/runner/work/glacier/glacier/ices/61774.rs:2:45: 2:50] to usize, but their sizes differed

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0080`.
==============
@JohnTitor JohnTitor merged commit a902a0c into master Dec 28, 2019
@JohnTitor JohnTitor deleted the autofix/ices/61774.rs branch December 28, 2019 12:11
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