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

ices/79566.sh: fixed with errors #566

Merged
merged 1 commit into from
Dec 18, 2020
Merged

ices/79566.sh: fixed with errors #566

merged 1 commit into from
Dec 18, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#79566

#!/bin/bash

rustc -Zinstrument-coverage - << EOF
#![feature(type_alias_impl_trait)]

type Closure = impl FnOnce();

fn c() -> Closure {
    || -> Closure { || () }
}

fn main() {}
EOF
=== stdout ===
=== stderr ===
error[E0271]: type mismatch resolving `<[closure@<anon>:6:5: 6:28] as FnOnce<()>>::Output == ()`
 --> <anon>:3:16
  |
3 | type Closure = impl FnOnce();
  |                ^^^^^^^^^^^^^ expected opaque type, found `()`
  |
  = note: expected opaque type `impl FnOnce<()>`
               found unit type `()`

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0271]: type mismatch resolving `<[closure@<anon>:6:5: 6:28] as FnOnce<()>>::Output == ()`
 --> <anon>:3:16
  |
3 | type Closure = impl FnOnce();
  |                ^^^^^^^^^^^^^ expected opaque type, found `()`
  |
  = note: expected opaque type `impl FnOnce<()>`
               found unit type `()`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0271`.
==============
@JohnTitor JohnTitor merged commit 20b0628 into master Dec 18, 2020
@JohnTitor JohnTitor deleted the autofix/ices/79566.sh branch December 18, 2020 13:42
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