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

ices/74447.rs: fixed with no errors #616

Merged
merged 1 commit into from
Jan 18, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#74447

#![feature(const_generics)]
#![allow(incomplete_features)]

fn test<const N: usize>() {}

fn wow<'a>() {
    test::<{
        let _: &'a ();
        3
    }>();
}

fn main() {}
=== stdout ===
=== stderr ===
warning: function is never used: `test`
 --> /home/runner/work/glacier/glacier/ices/74447.rs:4:4
  |
4 | fn test<const N: usize>() {}
  |    ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: function is never used: `wow`
 --> /home/runner/work/glacier/glacier/ices/74447.rs:6:4
  |
6 | fn wow<'a>() {
  |    ^^^

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
warning: function is never used: `test`
 --> /home/runner/work/glacier/glacier/ices/74447.rs:4:4
  |
4 | fn test<const N: usize>() {}
  |    ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: function is never used: `wow`
 --> /home/runner/work/glacier/glacier/ices/74447.rs:6:4
  |
6 | fn wow<'a>() {
  |    ^^^

warning: 2 warnings emitted

==============
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same as #615.

@JohnTitor JohnTitor merged commit 8a145e2 into master Jan 18, 2021
@JohnTitor JohnTitor deleted the autofix/ices/74447.rs branch January 18, 2021 13:27
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