about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDenys Otrishko <shishugi@gmail.com>2019-07-19 21:59:54 +0300
committerDenys Otrishko <shishugi@gmail.com>2019-07-19 21:59:54 +0300
commitb3618648f2d762c94bfbeee096562a799af38fe7 (patch)
tree7953adbeb78b51ed3420992fee49c5dbfb847753
parentc6735a624b45f8170299c0539856c7d3b5f29422 (diff)
downloadrust-b3618648f2d762c94bfbeee096562a799af38fe7.tar.gz
rust-b3618648f2d762c94bfbeee096562a799af38fe7.zip
fixup! rustc_typeck: improve diagnostics for _ const/static declarations
-rw-r--r--src/test/ui/error-codes/E0121.stderr5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0121.stderr b/src/test/ui/error-codes/E0121.stderr
index 1a16aab6a41..1def7029e6e 100644
--- a/src/test/ui/error-codes/E0121.stderr
+++ b/src/test/ui/error-codes/E0121.stderr
@@ -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