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

ices/93248.rs: fixed with no errors #1250

Merged
merged 1 commit into from
May 13, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#93248

#![feature(generic_const_exprs)]

trait Padding {
    const PADDING: usize;
}

trait Pad: Padding
where
    [u8; Self::PADDING]:,
{
    // const VAL: [u8; Self::PADDING]; // - works
    const VAL: [u8; Self::PADDING] = [0; Self::PADDING]; // - doesn't work
}

fn main() {}
=== stdout ===
=== stderr ===
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/93248.rs:1:12
  |
1 | #![feature(generic_const_exprs)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information

warning: 1 warning emitted

==============

=== stdout ===
=== stderr ===
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/93248.rs:1:12
  |
1 | #![feature(generic_const_exprs)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #76560 <rust-lang/rust#76560> for more information

warning: 1 warning emitted

==============
@Alexendoo Alexendoo merged commit 307e468 into master May 13, 2022
@Alexendoo Alexendoo deleted the autofix/ices/93248.rs branch May 13, 2022 14:04
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