Skip to content

Commit b361864

Browse files
committed
fixup! rustc_typeck: improve diagnostics for _ const/static declarations
1 parent c6735a6 commit b361864

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/ui/error-codes/E0121.stderr

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ error[E0121]: the type placeholder `_` is not allowed within types on item signa
1111
--> $DIR/E0121.rs:3:13
1212
|
1313
LL | static BAR: _ = "test";
14-
| ^ not allowed in type signatures
14+
| ^
15+
| |
16+
| not allowed in type signatures
17+
| help: replace `_` with the correct return type: `&'static str`
1518

1619
error: aborting due to 2 previous errors
1720

0 commit comments

Comments
 (0)