From b3618648f2d762c94bfbeee096562a799af38fe7 Mon Sep 17 00:00:00 2001 From: Denys Otrishko Date: Fri, 19 Jul 2019 21:59:54 +0300 Subject: [PATCH] fixup! rustc_typeck: improve diagnostics for _ const/static declarations --- src/test/ui/error-codes/E0121.stderr | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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