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

ices/69239.rs: fixed with errors #541

Merged
merged 1 commit into from
Nov 16, 2020
Merged

ices/69239.rs: fixed with errors #541

merged 1 commit into from
Nov 16, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#69239

trait Trait<const S: &'static str> {}

struct Bug<T>
where
    T: Trait<{std::intrinsics::type_name::<T>()}>
{
    t: T
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0658]: const generics are unstable
 --> /home/runner/work/glacier/glacier/ices/69239.rs:1:19
  |
1 | trait Trait<const S: &'static str> {}
  |                   ^
  |
  = note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
  = help: add `#![feature(min_const_generics)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library
 --> /home/runner/work/glacier/glacier/ices/69239.rs:5:15
  |
5 |     T: Trait<{std::intrinsics::type_name::<T>()}>
  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable

error: `std::intrinsics::type_name` is not yet stable as a const fn
 --> /home/runner/work/glacier/glacier/ices/69239.rs:5:15
  |
5 |     T: Trait<{std::intrinsics::type_name::<T>()}>
  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(const_type_name)]` to the crate attributes to enable

error: aborting due to 3 previous errors

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

=== stdout ===
=== stderr ===
error[E0658]: const generics are unstable
 --> /home/runner/work/glacier/glacier/ices/69239.rs:1:19
  |
1 | trait Trait<const S: &'static str> {}
  |                   ^
  |
  = note: see issue #74878 <rust-lang/rust#74878> for more information
  = help: add `#![feature(min_const_generics)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library
 --> /home/runner/work/glacier/glacier/ices/69239.rs:5:15
  |
5 |     T: Trait<{std::intrinsics::type_name::<T>()}>
  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable

error: `std::intrinsics::type_name` is not yet stable as a const fn
 --> /home/runner/work/glacier/glacier/ices/69239.rs:5:15
  |
5 |     T: Trait<{std::intrinsics::type_name::<T>()}>
  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(const_type_name)]` to the crate attributes to enable

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0658`.
==============
@Alexendoo Alexendoo merged commit 10cfe5a into master Nov 16, 2020
@Alexendoo Alexendoo deleted the autofix/ices/69239.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