about summary refs log tree commit diff
path: root/tests/ui/typeck/issue-81885.rs
blob: d675231d89819155cb5d3ce5dfd8530948efee26 (plain)
1
2
3
4
5
6
7
const TEST4: fn() -> _ = 42;
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for constants

fn main() {
    const TEST5: fn() -> _ = 42;
    //~^ ERROR the placeholder `_` is not allowed within types on item signatures for constants
}