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

ices/105321.rs: fixed with errors #1504

Merged
merged 1 commit into from
Feb 4, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 4, 2023

Issue: rust-lang/rust#105321

fn hof<F>(_: F)
where
    F: FnMut() -> (),
{
}

fn f() -> _ {
    hof(f);
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
 --> /home/runner/work/glacier/glacier/ices/105321.rs:7:11
  |
7 | fn f() -> _ {
  |           ^
  |           |
  |           not allowed in type signatures
  |           help: replace with the correct return type: `()`

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
 --> /home/runner/work/glacier/glacier/ices/105321.rs:7:11
  |
7 | fn f() -> _ {
  |           ^
  |           |
  |           not allowed in type signatures
  |           help: replace with the correct return type: `()`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0121`.
==============
@Alexendoo Alexendoo merged commit 600b465 into master Feb 4, 2023
@Alexendoo Alexendoo deleted the autofix/ices/105321.rs branch February 4, 2023 13:30
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