diff options
Diffstat (limited to 'tests/ui/lint/lint-ctypes-73249-3.stderr')
-rw-r--r-- | tests/ui/lint/lint-ctypes-73249-3.stderr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/lint/lint-ctypes-73249-3.stderr b/tests/ui/lint/lint-ctypes-73249-3.stderr new file mode 100644 index 000000000..c41ce666d --- /dev/null +++ b/tests/ui/lint/lint-ctypes-73249-3.stderr @@ -0,0 +1,15 @@ +error: `extern` block uses type `Qux`, which is not FFI-safe + --> $DIR/lint-ctypes-73249-3.rs:20:25 + | +LL | pub fn lint_me() -> A; + | ^ not FFI-safe + | + = note: opaque types have no C equivalent +note: the lint level is defined here + --> $DIR/lint-ctypes-73249-3.rs:2:9 + | +LL | #![deny(improper_ctypes)] + | ^^^^^^^^^^^^^^^ + +error: aborting due to previous error + |