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

Commit

Permalink
ices/98813.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
warning: the feature `adt_const_params` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/98813.rs:1:12
  |
1 | #![feature(adt_const_params)]
  |            ^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #95174 <rust-lang/rust#95174> for more information

error[E0741]: `f64` is forbidden as the type of a const generic parameter
 --> /home/runner/work/glacier/glacier/ices/98813.rs:5:25
  |
5 | pub struct Foo<const X: f64> {}
  |                         ^^^
  |
  = note: floats do not derive `Eq` or `Ord`, which are required for const parameters

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0741`.
==============
  • Loading branch information
rustbot committed Jul 12, 2022
1 parent 5195146 commit 104e452
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 104e452

Please sign in to comment.