summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/no-const-fn-in-extern-block.rs
blob: 1993124edc394ba9eaf98d60c067a2b7399d3157 (plain)
1
2
3
4
5
6
7
8
extern "C" {
    const fn foo();
    //~^ ERROR functions in `extern` blocks cannot have qualifiers
    const unsafe fn bar();
    //~^ ERROR functions in `extern` blocks cannot have qualifiers
}

fn main() {}