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

pub async const fn x() {}
//~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `const`