mirror of https://github.com/rust-lang/rust
16 lines
575 B
Plaintext
16 lines
575 B
Plaintext
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
|
|
--> $DIR/issue-74086.rs:2:20
|
|
|
|
|
LL | static BUG: fn(_) -> u8 = |_| 8;
|
|
| ^ not allowed in type signatures
|
|
|
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
|
|
--> $DIR/issue-74086.rs:2:20
|
|
|
|
|
LL | static BUG: fn(_) -> u8 = |_| 8;
|
|
| ^ not allowed in type signatures
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0121`.
|