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

ices/56445-2.rs: fixed with errors #443

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#56445

#![feature(const_generics)]
#![crate_type = "lib"]

use core::marker::PhantomData;

struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);

impl Bug<'_, ""> {}
=== stdout ===
=== stderr ===
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/56445-2.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[E0771]: use of non-static lifetime `'a` in const generic
 --> /home/runner/work/glacier/glacier/ices/56445-2.rs:6:26
  |
6 | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
  |                          ^^
  |
  = note: for more information, see issue #74052 <https://github.com/rust-lang/rust/issues/74052>

error: aborting due to previous error; 1 warning emitted

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

=== stdout ===
=== stderr ===
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/56445-2.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[E0771]: use of non-static lifetime `'a` in const generic
 --> /home/runner/work/glacier/glacier/ices/56445-2.rs:6:26
  |
6 | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
  |                          ^^
  |
  = note: for more information, see issue #74052 <rust-lang/rust#74052>

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0771`.
==============
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fixed by rust-lang/rust#74051.

@JohnTitor JohnTitor merged commit 265abab into master Jul 23, 2020
@JohnTitor JohnTitor deleted the autofix/ices/56445-2.rs branch July 23, 2020 12:27
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