mirror of https://github.com/rust-lang/rust.git
fixup! rustc_typeck: improve diagnostics for _ const/static declarations
This commit is contained in:
parent
b3618648f2
commit
c6e027de52
|
@ -14,7 +14,7 @@ LL | static BAR: _ = "test";
|
|||
| ^
|
||||
| |
|
||||
| not allowed in type signatures
|
||||
| help: replace `_` with the correct return type: `&'static str`
|
||||
| help: replace `_` with the correct type: `&'static str`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
Loading…
Reference in New Issue