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

ices/66906.rs: fixed with no errors #316

Merged
merged 1 commit into from
Mar 23, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#66906

#![feature(const_generics)]

pub struct Tuple;

pub trait ConstInput<const I: usize> {
    type Input;
}

impl Tuple {
    fn const_index<const I: usize>(_: <Self as ConstInput<I>>::Input)
    where
        Self: ConstInput<I>
    {}
}

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

warning: method is never used: `const_index`
  --> /home/runner/work/glacier/glacier/ices/66906.rs:10:5
   |
10 | /     fn const_index<const I: usize>(_: <Self as ConstInput<I>>::Input)
11 | |     where
12 | |         Self: ConstInput<I>
13 | |     {}
   | |______^
   |
   = 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/66906.rs:1:12
  |
1 | #![feature(const_generics)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

warning: method is never used: `const_index`
  --> /home/runner/work/glacier/glacier/ices/66906.rs:10:5
   |
10 | /     fn const_index<const I: usize>(_: <Self as ConstInput<I>>::Input)
11 | |     where
12 | |         Self: ConstInput<I>
13 | |     {}
   | |______^
   |
   = note: `#[warn(dead_code)]` on by default

==============
@Alexendoo Alexendoo merged commit bb0c591 into master Mar 23, 2020
@Alexendoo Alexendoo deleted the autofix/ices/66906.rs branch March 23, 2020 14:01
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