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

ices/66152.rs: fixed with errors #584

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#66152

fn main() {}

const fn foo<T>() -> usize { 0 }

struct S<'a> {
    beta: [(); foo::<&'a ()>()],
}
=== stdout ===
=== stderr ===
error[E0658]: a non-static lifetime is not allowed in a `const`
 --> /home/runner/work/glacier/glacier/ices/66152.rs:6:23
  |
6 |     beta: [(); foo::<&'a ()>()],
  |                       ^^
  |
  = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
  = help: add `#![feature(const_generics)]` 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]: a non-static lifetime is not allowed in a `const`
 --> /home/runner/work/glacier/glacier/ices/66152.rs:6:23
  |
6 |     beta: [(); foo::<&'a ()>()],
  |                       ^^
  |
  = note: see issue #44580 <rust-lang/rust#44580> for more information
  = help: add `#![feature(const_generics)]` to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
==============
@Alexendoo Alexendoo deleted the autofix/ices/66152.rs branch January 2, 2021 14:07
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