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

ices/71611.rs: fixed with errors #415

Merged
merged 1 commit into from
Jun 24, 2020
Merged

ices/71611.rs: fixed with errors #415

merged 1 commit into from
Jun 24, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#71611

#![feature(const_generics)]
#![feature(const_compare_raw_pointers)]

fn func<A, const F: fn(inner: A)>(outer: A) {
    F(outer);
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0557]: feature has been removed
 --> /home/runner/work/glacier/glacier/ices/71611.rs:2:12
  |
2 | #![feature(const_compare_raw_pointers)]
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^ feature has been removed
  |
  = note: cannot be allowed in const eval in any meaningful way

warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/71611.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information

error: using function pointers as const generic parameters is forbidden
 --> /home/runner/work/glacier/glacier/ices/71611.rs:4:21
  |
4 | fn func<A, const F: fn(inner: A)>(outer: A) {
  |                     ^^^^^^^^^^^^

error: aborting due to 2 previous errors; 1 warning emitted

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

=== stdout ===
=== stderr ===
error[E0557]: feature has been removed
 --> /home/runner/work/glacier/glacier/ices/71611.rs:2:12
  |
2 | #![feature(const_compare_raw_pointers)]
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^ feature has been removed
  |
  = note: cannot be allowed in const eval in any meaningful way

warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/71611.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #44580 <rust-lang/rust#44580> for more information

error: using function pointers as const generic parameters is forbidden
 --> /home/runner/work/glacier/glacier/ices/71611.rs:4:21
  |
4 | fn func<A, const F: fn(inner: A)>(outer: A) {
  |                     ^^^^^^^^^^^^

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0557`.
==============
@JohnTitor JohnTitor merged commit 95ade6b into master Jun 24, 2020
@JohnTitor JohnTitor deleted the autofix/ices/71611.rs branch June 24, 2020 12:57
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