summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/const-async-fn-in-main.rs
blob: 5d1aa4d83f38ee8800ad71db60752d7c1679c89b (plain)
1
2
3
4
5
6
7
// edition:2021
// Check what happens when a const async fn is in the main function (#102796)

fn main() {
    const async fn a() {}
//~^ ERROR functions cannot be both `const` and `async`
}