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

ices/68621.sh: fixed with errors #279

Merged
merged 1 commit into from
Feb 4, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 4, 2020

Issue: rust-lang/rust#68621

#!/bin/bash

rustc -Zsave-analysis - << END
#[feature(type_alias_impl_trait)]

trait Trait {}

trait Service {
    type Future: Trait;
}

struct Struct;

impl Service for Struct {
    type Future = impl Trait;
}

fn main() {}

END
=== stdout ===
=== stderr ===
error[E0658]: `impl Trait` in type aliases is unstable
  --> <anon>:12:19
   |
12 |     type Future = impl Trait;
   |                   ^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/63063
   = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable

error: could not find defining uses
  --> <anon>:12:5
   |
12 |     type Future = impl Trait;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
==============

=== stdout ===
=== stderr ===
error[E0658]: `impl Trait` in type aliases is unstable
  --> <anon>:12:19
   |
12 |     type Future = impl Trait;
   |                   ^^^^^^^^^^
   |
   = note: for more information, see rust-lang/rust#63063
   = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable

error: could not find defining uses
  --> <anon>:12:5
   |
12 |     type Future = impl Trait;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
==============
@JohnTitor JohnTitor merged commit ea53aba into master Feb 4, 2020
@JohnTitor JohnTitor deleted the autofix/ices/68621.sh branch February 4, 2020 12:09
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