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

Commit

Permalink
ices/77919.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
error[E0412]: cannot find type `PhantomData` in this scope
 --> /home/runner/work/glacier/glacier/ices/77919.rs:6:9
  |
6 |     _n: PhantomData,
  |         ^^^^^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
1 | use core::marker::PhantomData;
  |
1 | use std::marker::PhantomData;
  |

error[E0412]: cannot find type `VAL` in this scope
 --> /home/runner/work/glacier/glacier/ices/77919.rs:8:63
  |
8 | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
  |          -                                                    ^^^ not found in this scope
  |          |
  |          help: you might be missing a type parameter: `, VAL`

error[E0046]: not all trait items implemented, missing: `VAL`
 --> /home/runner/work/glacier/glacier/ices/77919.rs:8:1
  |
2 |     const VAL: T;
  |     ------------- `VAL` from trait
...
8 | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `VAL` in implementation

error: any use of this value will cause an error
 --> /home/runner/work/glacier/glacier/ices/77919.rs:2:5
  |
2 |     const VAL: T;
  |     ^^^^^^^^^^^^^ no MIR body is available for DefId(0:5 ~ 77919[317d]::TypeVal::VAL)
  |
  = note: `#[deny(const_err)]` on by default

error[E0080]: evaluation of constant value failed
  --> /home/runner/work/glacier/glacier/ices/77919.rs:11:9
   |
11 |     [1; <Multiply<Five, Five>>::VAL];
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0046, E0080, E0412.
For more information about an error, try `rustc --explain E0046`.
==============
  • Loading branch information
rustbot committed Oct 26, 2020
1 parent 9facd65 commit e991abc
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit e991abc

Please sign in to comment.