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