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

ices/87558.rs: fixed with errors #1089

Merged
merged 1 commit into from
Jan 16, 2022
Merged

ices/87558.rs: fixed with errors #1089

merged 1 commit into from
Jan 16, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#87558

#![feature(unboxed_closures)]

struct ErrorKind;
struct Error(ErrorKind);
impl Fn(&isize) for Error {
    fn from() {}
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0407]: method `from` is not a member of trait `Fn`
 --> /home/runner/work/glacier/glacier/ices/87558.rs:6:5
  |
6 |     fn from() {}
  |     ^^^^^^^^^^^^ not a member of trait `Fn`

error[E0229]: associated type bindings are not allowed here
 --> /home/runner/work/glacier/glacier/ices/87558.rs:5:6
  |
5 | impl Fn(&isize) for Error {
  |      ^^^^^^^^^^ associated type not allowed here

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0229, E0407.
For more information about an error, try `rustc --explain E0229`.
==============

=== stdout ===
=== stderr ===
error[E0407]: method `from` is not a member of trait `Fn`
 --> /home/runner/work/glacier/glacier/ices/87558.rs:6:5
  |
6 |     fn from() {}
  |     ^^^^^^^^^^^^ not a member of trait `Fn`

error[E0229]: associated type bindings are not allowed here
 --> /home/runner/work/glacier/glacier/ices/87558.rs:5:6
  |
5 | impl Fn(&isize) for Error {
  |      ^^^^^^^^^^ associated type not allowed here

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0229, E0407.
For more information about an error, try `rustc --explain E0229`.
==============
@Alexendoo Alexendoo merged commit 17848de into master Jan 16, 2022
@Alexendoo Alexendoo deleted the autofix/ices/87558.rs branch January 16, 2022 18:44
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