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

Commit

Permalink
ices/99820.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
error[E0059]: type parameter to bare `FnOnce` trait must be a tuple
 --> /home/runner/work/glacier/glacier/ices/99820.rs:7:12
  |
7 | impl const FnOnce<&usize> for Closure {
  |            ^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `&usize`
  |
note: required by a bound in `FnOnce`

error[E0277]: `&usize` is not a tuple
  --> /home/runner/work/glacier/glacier/ices/99820.rs:15:37
   |
15 | enum Bug<T = [(); Closure.call_once(&0) ]> {
   |                           --------- ^^ the trait `Tuple` is not implemented for `&usize`
   |                           |
   |                           required by a bound introduced by this call
   |
note: required by a bound in `call_once`

error[E0277]: functions with the "rust-call" ABI must take a single non-self tuple argument
  --> /home/runner/work/glacier/glacier/ices/99820.rs:10:5
   |
10 |     extern "rust-call" fn call_once(self, arg: &usize) -> Self::Output {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Tuple` is not implemented for `&usize`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0059, E0277.
For more information about an error, try `rustc --explain E0059`.
==============
  • Loading branch information
rustbot committed Nov 7, 2022
1 parent eaef1f7 commit 45ceda0
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 45ceda0

Please sign in to comment.