Update #83739 with type of the item specified

This commit is contained in:
Deadbeef 2021-06-22 01:03:54 +08:00
parent 9b6c7ffa06
commit e66f241b80
No known key found for this signature in database
GPG key ID: 6525773485376D92
2 changed files with 11 additions and 3 deletions

View file

@ -1,10 +1,10 @@
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
error[E0121]: the type placeholder `_` is not allowed within types on item signatures for constant items
--> $DIR/issue-75889.rs:3:24
|
LL | const FOO: dyn Fn() -> _ = "";
| ^ not allowed in type signatures
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
error[E0121]: the type placeholder `_` is not allowed within types on item signatures for static items
--> $DIR/issue-75889.rs:4:25
|
LL | static BOO: dyn Fn() -> _ = "";