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

ices/93882.sh: fixed with no errors #1251

Merged
merged 1 commit into from
May 13, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#93882

#!/bin/bash

cat > out.rs <<'EOF'
#![feature(generic_const_exprs)]
pub trait Const {
    const N: usize;
}
pub trait Arr<T>: Const {
    type Arr;
}
impl<T, C: Const> Arr<T> for C
where
    [T; C::N]:,
{
    type Arr = [T; C::N];
}
EOF

rustdoc --edition=2021 out.rs
=== stdout ===
=== stderr ===
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
 --> out.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
 --> out.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 3fd5620 into master May 13, 2022
@Alexendoo Alexendoo deleted the autofix/ices/93882.sh branch May 13, 2022 14:04
# 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