rust/tests/ui/suggestions/issue-101623.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

16 lines
605 B
Plaintext

error[E0277]: the trait bound `*mut (): Trait<'_>` is not satisfied
--> $DIR/issue-101623.rs:21:21
|
LL | Trait::do_stuff({ fun(&mut *inner) });
| --------------- ^^----------------^^
| | |
| | the trait `Trait<'_>` is not implemented for `*mut ()`
| required by a bound introduced by this call
|
= help: the trait `Trait<'_>` is implemented for `()`
= help: for that trait implementation, expected `()`, found `*mut ()`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.