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

ices/66962.rs: fixed with no errors #245

Merged
merged 1 commit into from
Jan 7, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 7, 2020

Issue: rust-lang/rust#66962

#![feature(const_generics)]

#[derive(PartialEq, Eq)]
struct Config {
    arr_size: usize
}

struct B<const CFG: Config> {
    arr: [u8; {CFG.arr_size}]
}

fn main() {}
=== stdout ===
=== stderr ===
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/66962.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

warning: struct is never constructed: `B`
 --> /home/runner/work/glacier/glacier/ices/66962.rs:8:8
  |
8 | struct B<const CFG: Config> {
  |        ^
  |
  = note: `#[warn(dead_code)]` on by default

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

=== stdout ===
=== stderr ===
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/66962.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

warning: struct is never constructed: `B`
 --> /home/runner/work/glacier/glacier/ices/66962.rs:8:8
  |
8 | struct B<const CFG: Config> {
  |        ^
  |
  = note: `#[warn(dead_code)]` on by default

==============
@JohnTitor JohnTitor merged commit 21715d3 into master Jan 7, 2020
@JohnTitor JohnTitor deleted the autofix/ices/66962.rs branch January 7, 2020 12:12
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