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

ices/75983.rs: fixed with no errors #502

Merged
merged 1 commit into from
Oct 7, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 7, 2020

Issue: rust-lang/rust#75983

#![feature(trait_alias)]

struct Bar;
trait Foo {}
impl Foo for Bar {}

trait Baz = Foo where Bar: Foo;

fn new() -> impl Baz {
    Bar
}

fn main() {}
=== stdout ===
=== stderr ===
warning: function is never used: `new`
 --> /home/runner/work/glacier/glacier/ices/75983.rs:9:4
  |
9 | fn new() -> impl Baz {
  |    ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: function is never used: `new`
 --> /home/runner/work/glacier/glacier/ices/75983.rs:9:4
  |
9 | fn new() -> impl Baz {
  |    ^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit e9cc13a into master Oct 7, 2020
@JohnTitor JohnTitor deleted the autofix/ices/75983.rs branch October 7, 2020 13:11
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