fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: functions in `extern` blocks cannot have qualifiers 2 --> $DIR/no-const-fn-in-extern-block.rs:2:14 3 | 4LL | extern "C" { 5 | ---------- in this `extern` block 6LL | const fn foo(); 7 | ^^^ 8 | 9help: remove the qualifiers 10 | 11LL | fn foo(); 12 | ~~ 13 14error: functions in `extern` blocks cannot have qualifiers 15 --> $DIR/no-const-fn-in-extern-block.rs:4:21 16 | 17LL | extern "C" { 18 | ---------- in this `extern` block 19... 20LL | const unsafe fn bar(); 21 | ^^^ 22 | 23help: remove the qualifiers 24 | 25LL | fn bar(); 26 | ~~ 27 28error: aborting due to 2 previous errors 29