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

ices/83836.rs: fixed with errors #718

Merged
merged 1 commit into from
Apr 19, 2021
Merged

ices/83836.rs: fixed with errors #718

merged 1 commit into from
Apr 19, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83836

fn func2(_x: Option<Target = Option>) {}
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `83836`
 --> /home/runner/work/glacier/glacier/ices/83836.rs:1:1
  |
1 | fn func2(_x: Option<Target = Option>) {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83836.rs`

error[E0107]: missing generics for enum `Option`
   --> /home/runner/work/glacier/glacier/ices/83836.rs:1:14
    |
1   | fn func2(_x: Option<Target = Option>) {}
    |              ^^^^^^ expected 1 type argument
    |
note: enum defined here, with 1 type parameter: `T`
help: use angle brackets to add missing type argument
    |
1   | fn func2(_x: Option<T><Target = Option>) {}
    |                    ^^^

error[E0107]: missing generics for enum `Option`
   --> /home/runner/work/glacier/glacier/ices/83836.rs:1:30
    |
1   | fn func2(_x: Option<Target = Option>) {}
    |                              ^^^^^^ expected 1 type argument
    |
note: enum defined here, with 1 type parameter: `T`
help: use angle brackets to add missing type argument
    |
1   | fn func2(_x: Option<Target = Option<T>>) {}
    |                                    ^^^

error[E0229]: associated type bindings are not allowed here
 --> /home/runner/work/glacier/glacier/ices/83836.rs:1:21
  |
1 | fn func2(_x: Option<Target = Option>) {}
  |                     ^^^^^^^^^^^^^^^ associated type not allowed here

error: aborting due to 4 previous errors

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

=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `83836`
 --> /home/runner/work/glacier/glacier/ices/83836.rs:1:1
  |
1 | fn func2(_x: Option<Target = Option>) {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83836.rs`

error[E0107]: missing generics for enum `Option`
   --> /home/runner/work/glacier/glacier/ices/83836.rs:1:14
    |
1   | fn func2(_x: Option<Target = Option>) {}
    |              ^^^^^^ expected 1 type argument
    |
note: enum defined here, with 1 type parameter: `T`
help: use angle brackets to add missing type argument
    |
1   | fn func2(_x: Option<T><Target = Option>) {}
    |                    ^^^

error[E0107]: missing generics for enum `Option`
   --> /home/runner/work/glacier/glacier/ices/83836.rs:1:30
    |
1   | fn func2(_x: Option<Target = Option>) {}
    |                              ^^^^^^ expected 1 type argument
    |
note: enum defined here, with 1 type parameter: `T`
help: use angle brackets to add missing type argument
    |
1   | fn func2(_x: Option<Target = Option<T>>) {}
    |                                    ^^^

error[E0229]: associated type bindings are not allowed here
 --> /home/runner/work/glacier/glacier/ices/83836.rs:1:21
  |
1 | fn func2(_x: Option<Target = Option>) {}
  |                     ^^^^^^^^^^^^^^^ associated type not allowed here

error: aborting due to 4 previous errors

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

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, see the original issue comment.

@JohnTitor JohnTitor merged commit b79cfc2 into master Apr 19, 2021
@JohnTitor JohnTitor deleted the autofix/ices/83836.rs branch April 19, 2021 00: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