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

ices/109178.rs: fixed with errors #1586

Merged
merged 1 commit into from
May 20, 2023
Merged

ices/109178.rs: fixed with errors #1586

merged 1 commit into from
May 20, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#109178

#![feature(adt_const_params, generic_const_exprs)]

struct Changes<const CHANGES: &[&'static str]>
where
    [(); CHANGES.len()]:, {}

impl<const CHANGES: &[&str]> Changes<CHANGES> where [(); CHANGES.len()]: {}

fn main() {}
=== stdout ===
=== stderr ===
error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109178.rs:3:31
  |
3 | struct Changes<const CHANGES: &[&'static str]>
  |                               ^ explicit lifetime name needed here

error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109178.rs:7:21
  |
7 | impl<const CHANGES: &[&str]> Changes<CHANGES> where [(); CHANGES.len()]: {}
  |                     ^ explicit lifetime name needed here

error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109178.rs:7:23
  |
7 | impl<const CHANGES: &[&str]> Changes<CHANGES> where [(); CHANGES.len()]: {}
  |                       ^ explicit lifetime name needed here

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

warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/109178.rs:1:30
  |
1 | #![feature(adt_const_params, generic_const_exprs)]
  |                              ^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information

error: aborting due to 3 previous errors; 2 warnings emitted

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

=== stdout ===
=== stderr ===
error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109178.rs:3:31
  |
3 | struct Changes<const CHANGES: &[&'static str]>
  |                               ^ explicit lifetime name needed here

error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109178.rs:7:21
  |
7 | impl<const CHANGES: &[&str]> Changes<CHANGES> where [(); CHANGES.len()]: {}
  |                     ^ explicit lifetime name needed here

error[E0637]: `&` without an explicit lifetime name cannot be used here
 --> /home/runner/work/glacier/glacier/ices/109178.rs:7:23
  |
7 | impl<const CHANGES: &[&str]> Changes<CHANGES> where [(); CHANGES.len()]: {}
  |                       ^ explicit lifetime name needed here

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

warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/109178.rs:1:30
  |
1 | #![feature(adt_const_params, generic_const_exprs)]
  |                              ^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #76560 <rust-lang/rust#76560> for more information

error: aborting due to 3 previous errors; 2 warnings emitted

For more information about this error, try `rustc --explain E0637`.
==============
@JohnTitor JohnTitor merged commit 293e62c into master May 20, 2023
@JohnTitor JohnTitor deleted the autofix/ices/109178.rs branch May 20, 2023 05:43
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