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

ices/87558.rs: fixed with errors #1058

Closed
wants to merge 1 commit into from
Closed

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#87558

struct ErrorKind;
struct Error(ErrorKind);
impl Fn(&isize) for Error {
    fn from() {}
}
=== stdout ===
=== stderr ===
error[E0407]: method `from` is not a member of trait `Fn`
 --> /home/runner/work/glacier/glacier/ices/87558.rs:4:5
  |
4 |     fn from() {}
  |     ^^^^^^^^^^^^ not a member of trait `Fn`

error[E0601]: `main` function not found in crate `87558`
 --> /home/runner/work/glacier/glacier/ices/87558.rs:1:1
  |
1 | / struct ErrorKind;
2 | | struct Error(ErrorKind);
3 | | impl Fn(&isize) for Error {
4 | |     fn from() {}
5 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/87558.rs`

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

error[E0183]: manual implementations of `Fn` are experimental
 --> /home/runner/work/glacier/glacier/ices/87558.rs:3:1
  |
3 | impl Fn(&isize) for Error {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^ manual implementations of `Fn` are experimental
  |
  = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable

error: aborting due to 4 previous errors

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

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

error[E0601]: `main` function not found in crate `87558`
 --> /home/runner/work/glacier/glacier/ices/87558.rs:1:1
  |
1 | / struct ErrorKind;
2 | | struct Error(ErrorKind);
3 | | impl Fn(&isize) for Error {
4 | |     fn from() {}
5 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/87558.rs`

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

error[E0183]: manual implementations of `Fn` are experimental
 --> /home/runner/work/glacier/glacier/ices/87558.rs:3:1
  |
3 | impl Fn(&isize) for Error {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^ manual implementations of `Fn` are experimental
  |
  = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0183, E0229, E0407, E0601.
For more information about an error, try `rustc --explain E0183`.
==============
@Alexendoo
Copy link
Member

b3aa365

@Alexendoo Alexendoo closed this Dec 17, 2021
@Alexendoo Alexendoo deleted the autofix/ices/87558.rs branch December 17, 2021 21:57
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