mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-23 03:37:29 +00:00
Make replacement suggestion `_` in type verbose
```
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
--> $DIR/in-signature.rs:6:21
|
LL | fn arr_fn() -> [u8; _] {
| ^ not allowed in type signatures
|
help: replace with the correct return type
|
LL - fn arr_fn() -> [u8; _] {
LL + fn arr_fn() -> [u8; 3] {
|
```
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.