]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-57404.stderr
Auto merge of #107663 - matthiaskrgr:107423-point-at-EOF-code, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-57404.stderr
1 error[E0277]: `&mut ()` is not a tuple
2   --> $DIR/issue-57404.rs:6:41
3    |
4 LL |     handlers.unwrap().as_mut().call_mut(&mut ());
5    |                                -------- ^^^^^^^ the trait `Tuple` is not implemented for `&mut ()`
6    |                                |
7    |                                required by a bound introduced by this call
8    |
9 note: required by a bound in `call_mut`
10   --> $SRC_DIR/core/src/ops/function.rs:LL:COL
11 help: consider removing the leading `&`-reference
12    |
13 LL -     handlers.unwrap().as_mut().call_mut(&mut ());
14 LL +     handlers.unwrap().as_mut().call_mut(());
15    |
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.