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

ices/88434.rs: fixed with errors #992

Merged
merged 1 commit into from
Oct 15, 2021
Merged

ices/88434.rs: fixed with errors #992

merged 1 commit into from
Oct 15, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#88434

const _CONST: &[u8] = &f(&[], |_| {});

const fn f<F>(_: &[u8], _: F) -> &[u8]
where
    F: FnMut(&u8),
{
    panic!()
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
 --> /home/runner/work/glacier/glacier/ices/88434.rs:3:12
  |
3 | const fn f<F>(_: &[u8], _: F) -> &[u8]
  |            ^
  |
  = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
  = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
 --> /home/runner/work/glacier/glacier/ices/88434.rs:3:12
  |
3 | const fn f<F>(_: &[u8], _: F) -> &[u8]
  |            ^
  |
  = note: see issue #57563 <rust-lang/rust#57563> for more information
  = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
==============
@JohnTitor JohnTitor merged commit d15c8a3 into master Oct 15, 2021
@JohnTitor JohnTitor deleted the autofix/ices/88434.rs branch October 15, 2021 16:18
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