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

ices/108957.rs: fixed with no errors #1578

Merged
merged 1 commit into from
May 9, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 9, 2023

Issue: rust-lang/rust#108957

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

struct Choose<T>(T);

impl<T: Copy> Choose<T> {
    type Result = Vec<T>;
}

fn main() {
    let _: Choose<&str>::Result = vec!["..."];
}
=== stdout ===
=== stderr ===
warning: associated type `Result` is never used
 --> /home/runner/work/glacier/glacier/ices/108957.rs:7:10
  |
6 | impl<T: Copy> Choose<T> {
  | ----------------------- associated type in this implementation
7 |     type Result = Vec<T>;
  |          ^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: associated type `Result` is never used
 --> /home/runner/work/glacier/glacier/ices/108957.rs:7:10
  |
6 | impl<T: Copy> Choose<T> {
  | ----------------------- associated type in this implementation
7 |     type Result = Vec<T>;
  |          ^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 075626e into master May 9, 2023
@JohnTitor JohnTitor deleted the autofix/ices/108957.rs branch May 9, 2023 09:13
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