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

ices/75962.sh: fixed with no errors #524

Merged
merged 1 commit into from
Oct 28, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#75962

#!/bin/bash

rustc -Z save-analysis - << EOF

#![feature(type_alias_impl_trait)]
#![feature(impl_trait_in_bindings)]

struct Foo<T>(T);

trait FooLike { type Output; }

impl<T> FooLike for Foo<T> {
    type Output = T;
}


// Reduction using `impl Trait` in bindings

mod impl_trait_in_bindings {
    struct Foo;

    trait FooLike { type Output; }

    impl FooLike for Foo {
        type Output = u32;
    }

    trait Trait {
        type Assoc;
    }

    fn foo<T: Trait<Assoc=u32>>() {
        let _: impl FooLike<Output=T::Assoc> = Foo;
    }
}

fn main() {}

EOF
=== stdout ===
=== stderr ===
/home/runner/work/glacier/glacier/ices/75962.sh: line 3: impl: command not found
warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
 --> <anon>:3:12
  |
3 | #![feature(impl_trait_in_bindings)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information

warning: function is never used: `foo`
  --> <anon>:29:8
   |
29 |     fn foo<T: Trait<Assoc=u32>>() {
   |        ^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
/home/runner/work/glacier/glacier/ices/75962.sh: line 3: impl: command not found
warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
 --> <anon>:3:12
  |
3 | #![feature(impl_trait_in_bindings)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #63065 <rust-lang/rust#63065> for more information

warning: function is never used: `foo`
  --> <anon>:29:8
   |
29 |     fn foo<T: Trait<Assoc=u32>>() {
   |        ^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

==============
@Alexendoo Alexendoo merged commit e4f8c53 into master Oct 28, 2020
@Alexendoo Alexendoo deleted the autofix/ices/75962.sh branch October 28, 2020 12:30
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