mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
generic_arg_infer: placeholder in signature err
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
error[E0121]: the type placeholder `_` is not allowed within types on item signatures for return types
|
||||
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
|
||||
--> $DIR/E0121.rs:1:13
|
||||
|
|
||||
LL | fn foo() -> _ { 5 }
|
||||
@@ -7,7 +7,7 @@ LL | fn foo() -> _ { 5 }
|
||||
| not allowed in type signatures
|
||||
| help: replace with the correct return type: `i32`
|
||||
|
||||
error[E0121]: the type placeholder `_` is not allowed within types on item signatures for static variables
|
||||
error[E0121]: the placeholder `_` is not allowed within types on item signatures for static variables
|
||||
--> $DIR/E0121.rs:3:13
|
||||
|
|
||||
LL | static BAR: _ = "test";
|
||||
|
||||
Reference in New Issue
Block a user