]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-74086.rs
Rollup merge of #106788 - estebank:elaborate_pred_E0599, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-74086.rs
1 fn main() {
2     static BUG: fn(_) -> u8 = |_| 8;
3     //~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions [E0121]
4     //~| ERROR the placeholder `_` is not allowed within types on item signatures for static items
5 }