summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/no-const-fn-in-extern-block.stderr
blob: 4ac0e265501f2df028de19b3c22f55b97e84c58f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
error: functions in `extern` blocks cannot have qualifiers
  --> $DIR/no-const-fn-in-extern-block.rs:2:14
   |
LL | extern "C" {
   | ---------- in this `extern` block
LL |     const fn foo();
   |              ^^^
   |
help: remove the qualifiers
   |
LL |     fn foo();
   |     ~~

error: functions in `extern` blocks cannot have qualifiers
  --> $DIR/no-const-fn-in-extern-block.rs:4:21
   |
LL | extern "C" {
   | ---------- in this `extern` block
...
LL |     const unsafe fn bar();
   |                     ^^^
   |
help: remove the qualifiers
   |
LL |     fn bar();
   |     ~~

error: aborting due to 2 previous errors