Skip to content

Commit

Permalink
fixup! rustc_typeck: improve diagnostics for _ const/static declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
lundibundi committed Jul 19, 2019
1 parent c6735a6 commit b361864
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/ui/error-codes/E0121.stderr
Expand Up @@ -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

Expand Down

0 comments on commit b361864

Please sign in to comment.