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

ices/88643.rs: fixed with errors #1307

Merged
merged 1 commit into from
Jun 15, 2022
Merged

ices/88643.rs: fixed with errors #1307

merged 1 commit into from
Jun 15, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#88643

#![crate_type = "lib"]

use std::collections::HashMap;

struct Widget {}

pub trait WidgetExt {
    fn set_callback<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
    where
        Self: Sized;
}

static CALLBACKS: HashMap<*const dyn WidgetExt, dyn FnMut(&mut _) + 'static> = HashMap::new();
=== stdout ===
=== stderr ===
error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
  --> /home/runner/work/glacier/glacier/ices/88643.rs:13:64
   |
13 | static CALLBACKS: HashMap<*const dyn WidgetExt, dyn FnMut(&mut _) + 'static> = HashMap::new();
   |                                                                ^ not allowed in type signatures

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 static items
  --> /home/runner/work/glacier/glacier/ices/88643.rs:13:64
   |
13 | static CALLBACKS: HashMap<*const dyn WidgetExt, dyn FnMut(&mut _) + 'static> = HashMap::new();
   |                                                                ^ not allowed in type signatures

error: aborting due to previous error

For more information about this error, try `rustc --explain E0121`.
==============
@JohnTitor JohnTitor merged commit edbb05e into master Jun 15, 2022
@JohnTitor JohnTitor deleted the autofix/ices/88643.rs branch June 15, 2022 08:52
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants