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

ices/72293.rs: fixed with errors #420

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#72293

#![feature(const_generics, const_transmute)]

struct Const<const P: &'static ()>;

fn main() {
    const A: &'static () = unsafe {
        std::mem::transmute(10 as *const ())
    };

    let _ = Const::<{A}>;
}
=== stdout ===
=== stderr ===
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/72293.rs:1:12
  |
1 | #![feature(const_generics, const_transmute)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information

error[E0635]: unknown feature `const_transmute`
 --> /home/runner/work/glacier/glacier/ices/72293.rs:1:28
  |
1 | #![feature(const_generics, const_transmute)]
  |                            ^^^^^^^^^^^^^^^

error: aborting due to previous error; 1 warning emitted

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

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

error[E0635]: unknown feature `const_transmute`
 --> /home/runner/work/glacier/glacier/ices/72293.rs:1:28
  |
1 | #![feature(const_generics, const_transmute)]
  |                            ^^^^^^^^^^^^^^^

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0635`.
==============
@Alexendoo Alexendoo closed this Jul 13, 2020
@Alexendoo Alexendoo deleted the autofix/ices/72293.rs branch July 13, 2020 12:27
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