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

ices/67166.rs: fixed with errors #286

Merged
merged 1 commit into from
Feb 16, 2020
Merged

ices/67166.rs: fixed with errors #286

merged 1 commit into from
Feb 16, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#67166

#![feature(impl_trait_in_bindings)]

#[allow(dead_code)]
fn run() {
    let _foo: Box<impl Copy + '_> = Box::new(());
}

fn main() {}
=== stdout ===
=== stderr ===
warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/67166.rs:1:12
  |
1 | #![feature(impl_trait_in_bindings)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

error[E0720]: opaque type expands to a recursive type
 --> /home/runner/work/glacier/glacier/ices/67166.rs:5:19
  |
5 |     let _foo: Box<impl Copy + '_> = Box::new(());
  |                   ^^^^^^^^^^^^^^ expands to a recursive type
  |
  = note: type resolves to itself

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/67166.rs:1:12
  |
1 | #![feature(impl_trait_in_bindings)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

error[E0720]: opaque type expands to a recursive type
 --> /home/runner/work/glacier/glacier/ices/67166.rs:5:19
  |
5 |     let _foo: Box<impl Copy + '_> = Box::new(());
  |                   ^^^^^^^^^^^^^^ expands to a recursive type
  |
  = note: type resolves to itself

error: aborting due to previous error

For more information about this error, try `rustc --explain E0720`.
==============
@Alexendoo Alexendoo merged commit a6d93c2 into master Feb 16, 2020
@Alexendoo Alexendoo deleted the autofix/ices/67166.rs branch February 16, 2020 13:36
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