]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-74086.rs
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[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 }