summaryrefslogtreecommitdiffstats
path: root/src/test/ui/ffi_const.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/ffi_const.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/ffi_const.stderr b/src/test/ui/ffi_const.stderr
new file mode 100644
index 000000000..bc3c12eaf
--- /dev/null
+++ b/src/test/ui/ffi_const.stderr
@@ -0,0 +1,9 @@
+error[E0756]: `#[ffi_const]` may only be used on foreign functions
+ --> $DIR/ffi_const.rs:4:1
+ |
+LL | #[ffi_const]
+ | ^^^^^^^^^^^^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0756`.