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

ices/57404.rs: fixed with errors #1453

Merged
merged 1 commit into from
Nov 9, 2022
Merged

ices/57404.rs: fixed with errors #1453

merged 1 commit into from
Nov 9, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 7, 2022

Issue: rust-lang/rust#57404

#![feature(unboxed_closures)]
#![feature(fn_traits)]

fn main() {
    let handlers: Option<Box<dyn for<'a> FnMut<&'a mut (), Output=()>>> = None;
    handlers.unwrap().as_mut().call_mut(&mut ());
}
=== stdout ===
=== stderr ===
error[E0277]: `&mut ()` is not a tuple
 --> /home/runner/work/glacier/glacier/ices/57404.rs:6:41
  |
6 |     handlers.unwrap().as_mut().call_mut(&mut ());
  |                                -------- -^^^^^^
  |                                |        |
  |                                |        the trait `Tuple` is not implemented for `&mut ()`
  |                                |        help: consider removing the leading `&`-reference
  |                                required by a bound introduced by this call
  |
note: required by a bound in `call_mut`

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0277]: `&mut ()` is not a tuple
 --> /home/runner/work/glacier/glacier/ices/57404.rs:6:41
  |
6 |     handlers.unwrap().as_mut().call_mut(&mut ());
  |                                -------- -^^^^^^
  |                                |        |
  |                                |        the trait `Tuple` is not implemented for `&mut ()`
  |                                |        help: consider removing the leading `&`-reference
  |                                required by a bound introduced by this call
  |
note: required by a bound in `call_mut`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
==============
@Alexendoo Alexendoo merged commit 82a9d9e into master Nov 9, 2022
@Alexendoo Alexendoo deleted the autofix/ices/57404.rs branch November 9, 2022 13:58
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