]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/no-const-fn-in-extern-block.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / parser / no-const-fn-in-extern-block.stderr
1 error: functions in `extern` blocks cannot have qualifiers
2 --> $DIR/no-const-fn-in-extern-block.rs:2:14
3 |
4 LL | extern {
5 | ------ in this `extern` block
6 LL | const fn foo();
7 | ^^^
8 |
9 help: remove the qualifiers
10 |
11 LL | fn foo();
12 | ^^
13
14 error: functions in `extern` blocks cannot have qualifiers
15 --> $DIR/no-const-fn-in-extern-block.rs:4:21
16 |
17 LL | extern {
18 | ------ in this `extern` block
19 ...
20 LL | const unsafe fn bar();
21 | ^^^
22 |
23 help: remove the qualifiers
24 |
25 LL | fn bar();
26 | ^^
27
28 error: aborting due to 2 previous errors
29