mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 14:24:08 +00:00
fixup! rustc_typeck: improve diagnostics for _ const/static declarations
This commit is contained in:
parent
c6735a624b
commit
b3618648f2
@ -11,7 +11,10 @@ error[E0121]: the type placeholder `_` is not allowed within types on item signa
|
||||
--> $DIR/E0121.rs:3:13
|
||||
|
|
||||
LL | static BAR: _ = "test";
|
||||
| ^ not allowed in type signatures
|
||||
| ^
|
||||
| |
|
||||
| not allowed in type signatures
|
||||
| help: replace `_` with the correct return type: `&'static str`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user