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