summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-81885.rs
blob: fb3949478a4d3e758ecd33a2ed602a2341d49de4 (plain)
1
2
3
4
5
6
7
8
9
const TEST4: fn() -> _ = 42;
                  //~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
                  //~| ERROR the placeholder `_` is not allowed within types on item signatures for constant items

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