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

ices/78652.rs: fixed with no errors #732

Merged
merged 1 commit into from
Apr 27, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#78652

#![unstable(feature = "humans", issue = "none")]
#![feature(staged_api)]
struct Foo;
impl Foo {
    #[stable(feature = "rust1", since = "1.0.0")]
    const fn gated() -> u32 {
        42
    }
}

fn main() {}
=== stdout ===
=== stderr ===
warning: struct is never constructed: `Foo`
 --> /home/runner/work/glacier/glacier/ices/78652.rs:3:8
  |
3 | struct Foo;
  |        ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: associated function is never used: `gated`
 --> /home/runner/work/glacier/glacier/ices/78652.rs:6:14
  |
6 |     const fn gated() -> u32 {
  |              ^^^^^

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
warning: struct is never constructed: `Foo`
 --> /home/runner/work/glacier/glacier/ices/78652.rs:3:8
  |
3 | struct Foo;
  |        ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: associated function is never used: `gated`
 --> /home/runner/work/glacier/glacier/ices/78652.rs:6:14
  |
6 |     const fn gated() -> u32 {
  |              ^^^^^

warning: 2 warnings emitted

==============
@JohnTitor JohnTitor merged commit 2fcea0a into master Apr 27, 2021
@JohnTitor JohnTitor deleted the autofix/ices/78652.rs branch April 27, 2021 13:29
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