summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/unsafe-foreign-mod-2.stderr
blob: 7cc2de141ae142da6a0297006f9281ddc220497d (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
error: expected `{`, found keyword `unsafe`
  --> $DIR/unsafe-foreign-mod-2.rs:1:12
   |
LL | extern "C" unsafe {
   |            ^^^^^^ expected `{`

error: extern block cannot be declared unsafe
  --> $DIR/unsafe-foreign-mod-2.rs:1:12
   |
LL | extern "C" unsafe {
   |            ^^^^^^

error: functions in `extern` blocks cannot have qualifiers
  --> $DIR/unsafe-foreign-mod-2.rs:4:15
   |
LL | extern "C" unsafe {
   | ----------------- in this `extern` block
...
LL |     unsafe fn foo();
   |               ^^^
   |
help: remove the qualifiers
   |
LL |     fn foo();
   |     ~~

error: aborting due to 3 previous errors