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

ices/73249.rs: fixed with no errors #401

Merged
merged 1 commit into from
Jun 22, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#73249

pub trait Foo {
    type Assoc;
}

impl Foo for () {
    type Assoc = u32;
}

extern "C" {
    pub fn lint_me(x: Bar<()>);
}

#[repr(transparent)]
pub struct Bar<T: Foo> {
    value: <T as Foo>::Assoc,
}

fn main() {}
=== stdout ===
=== stderr ===
warning: field is never read: `value`
  --> /home/runner/work/glacier/glacier/ices/73249.rs:15:5
   |
15 |     value: <T as Foo>::Assoc,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: field is never read: `value`
  --> /home/runner/work/glacier/glacier/ices/73249.rs:15:5
   |
15 |     value: <T as Foo>::Assoc,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 0298ba1 into master Jun 22, 2020
@JohnTitor JohnTitor deleted the autofix/ices/73249.rs branch June 22, 2020 11:57
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