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

Commit

Permalink
ices/62879.rs: fixed with errors (#218)
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/62879.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

error[E0391]: cycle detected when const-evaluating + checking `<impl at /home/runner/work/glacier/glacier/ices/62879.rs:4:1: 7:3>::{{constant}}#0`
 --> /home/runner/work/glacier/glacier/ices/62879.rs:6:18
  |
6 |     Self:FooImpl<{N==0}>
  |                  ^^^^^^
  |
note: ...which requires const-evaluating + checking `<impl at /home/runner/work/glacier/glacier/ices/62879.rs:4:1: 7:3>::{{constant}}#0`...
 --> /home/runner/work/glacier/glacier/ices/62879.rs:6:18
  |
6 |     Self:FooImpl<{N==0}>
  |                  ^^^^^^
note: ...which requires const-evaluating `<impl at /home/runner/work/glacier/glacier/ices/62879.rs:4:1: 7:3>::{{constant}}#0`...
 --> /home/runner/work/glacier/glacier/ices/62879.rs:6:18
  |
6 |     Self:FooImpl<{N==0}>
  |                  ^^^^^^
note: ...which requires processing `<impl at /home/runner/work/glacier/glacier/ices/62879.rs:4:1: 7:3>::{{constant}}#0`...
 --> /home/runner/work/glacier/glacier/ices/62879.rs:6:18
  |
6 |     Self:FooImpl<{N==0}>
  |                  ^^^^^^
note: ...which requires processing `<impl at /home/runner/work/glacier/glacier/ices/62879.rs:4:1: 7:3>::{{constant}}#0`...
 --> /home/runner/work/glacier/glacier/ices/62879.rs:6:18
  |
6 |     Self:FooImpl<{N==0}>
  |                  ^^^^^^
  = note: ...which again requires const-evaluating + checking `<impl at /home/runner/work/glacier/glacier/ices/62879.rs:4:1: 7:3>::{{constant}}#0`, completing the cycle
note: cycle used when processing `<impl at /home/runner/work/glacier/glacier/ices/62879.rs:4:1: 7:3>`
 --> /home/runner/work/glacier/glacier/ices/62879.rs:4:1
  |
4 | / impl<const N: usize> Foo for [(); N]
5 | | where
6 | |     Self:FooImpl<{N==0}>
7 | | {}
  | |__^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.
==============
  • Loading branch information
github-actions[bot] authored and Alexendoo committed Dec 5, 2019
1 parent f068279 commit 8a8f4d0
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 8a8f4d0

Please sign in to comment.