summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-ctypes-73251-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/lint-ctypes-73251-2.stderr')
-rw-r--r--src/test/ui/lint/lint-ctypes-73251-2.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/lint/lint-ctypes-73251-2.stderr b/src/test/ui/lint/lint-ctypes-73251-2.stderr
new file mode 100644
index 000000000..64f0fb2d8
--- /dev/null
+++ b/src/test/ui/lint/lint-ctypes-73251-2.stderr
@@ -0,0 +1,15 @@
+error: `extern` block uses type `AliasA`, which is not FFI-safe
+ --> $DIR/lint-ctypes-73251-2.rs:36:25
+ |
+LL | pub fn lint_me() -> <AliasB as TraitB>::Assoc;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
+ |
+note: the lint level is defined here
+ --> $DIR/lint-ctypes-73251-2.rs:2:9
+ |
+LL | #![deny(improper_ctypes)]
+ | ^^^^^^^^^^^^^^^
+ = note: opaque types have no C equivalent
+
+error: aborting due to previous error
+