]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-74086.rs
Rollup merge of #107194 - xfix:remove-slice-internals-dependency-in-rustc-ast, r...
[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 }