fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
584 B23 linesraw
1error: functions in `extern` blocks cannot have qualifiers
2  --> $DIR/no-const-fn-in-extern-block.rs:2:14
3   |
4LL | extern {
5   | ------ in this `extern` block
6LL |     const fn foo();
7   |     ---------^^^
8   |     |
9   |     help: remove the qualifiers: `fn`
10
11error: functions in `extern` blocks cannot have qualifiers
12  --> $DIR/no-const-fn-in-extern-block.rs:4:21
13   |
14LL | extern {
15   | ------ in this `extern` block
16...
17LL |     const unsafe fn bar();
18   |     ----------------^^^
19   |     |
20   |     help: remove the qualifiers: `fn`
21
22error: aborting due to 2 previous errors
23