mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-26 20:06:43 +00:00
This centralizes the placeholder type error reporting in one location, but it also exposes the granularity at which we convert things from hir to ty more. E.g. previously infer types in where bounds were errored together with the function signature, but now they are independent.
18 lines
572 B
Plaintext
18 lines
572 B
Plaintext
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
|
|
--> $DIR/issue-118048.rs:7:6
|
|
|
|
|
LL | foo!(_);
|
|
| ^ not allowed in type signatures
|
|
|
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
|
|
--> $DIR/issue-118048.rs:7:6
|
|
|
|
|
LL | foo!(_);
|
|
| ^ not allowed in type signatures
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0121`.
|