summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/no-async-const.rs
blob: c9941d1c5a00ad037c3db81afba45276fafcd0f4 (plain)
1
2
3
4
5
6
// edition:2018
// compile-flags: --crate-type lib

pub async const fn x() {}
//~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `const`
//~| ERROR functions cannot be both `const` and `async`