about summary refs log tree commit diff
path: root/tests/ui/typeck/issue-74086.rs
blob: c00ba81f55101500bc6d4d30a0eb8797545a25a4 (plain)
1
2
3
4
fn main() {
    static BUG: fn(_) -> u8 = |_| 8;
    //~^ ERROR the placeholder `_` is not allowed within types on item signatures for statics
}