about summary refs log tree commit diff
path: root/tests/ui/ffi-attrs/ffi_const.stderr
blob: f3be925431836b146798001df24a6dc9de86ec6a (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
30
31
32
33
34
35
36
37
error: unsafe attribute used without unsafe
  --> $DIR/ffi_const.rs:16:7
   |
LL |     #[ffi_const]
   |       ^^^^^^^^^ usage of unsafe attribute
   |
help: wrap the attribute in `unsafe(...)`
   |
LL |     #[unsafe(ffi_const)]
   |       +++++++         +

error: `#[ffi_const]` attribute cannot be used on functions
  --> $DIR/ffi_const.rs:4:1
   |
LL | #[unsafe(ffi_const)]
   | ^^^^^^^^^^^^^^^^^^^^
   |
   = help: `#[ffi_const]` can only be applied to foreign functions

error: `#[ffi_const]` attribute cannot be used on macro defs
  --> $DIR/ffi_const.rs:7:1
   |
LL | #[unsafe(ffi_const)]
   | ^^^^^^^^^^^^^^^^^^^^
   |
   = help: `#[ffi_const]` can only be applied to foreign functions

error: `#[ffi_const]` attribute cannot be used on foreign statics
  --> $DIR/ffi_const.rs:13:5
   |
LL |     #[unsafe(ffi_const)]
   |     ^^^^^^^^^^^^^^^^^^^^
   |
   = help: `#[ffi_const]` can only be applied to foreign functions

error: aborting due to 4 previous errors