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

ices/60814.rs: fixed with errors #444

Merged
merged 1 commit into from
Jul 23, 2020
Merged

ices/60814.rs: fixed with errors #444

merged 1 commit into from
Jul 23, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#60814

#![feature(const_generics)]

pub fn function_with_str<'a, const STRING: &'a str>() {
}

pub fn use_it() {
    function_with_str::<"Hello, world!">()
}

fn main() {}
=== 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/60814.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/60814.rs:3:45
  |
3 | pub fn function_with_str<'a, const STRING: &'a str>() {
  |                                             ^^
  |
  = 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/60814.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/60814.rs:3:45
  |
3 | pub fn function_with_str<'a, const STRING: &'a str>() {
  |                                             ^^
  |
  = 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.

The issue was closed as fixed.

@JohnTitor JohnTitor merged commit a1dea6c into master Jul 23, 2020
@JohnTitor JohnTitor deleted the autofix/ices/60814.rs branch July 23, 2020 12:16
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants