summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-16250.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-16250.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-16250.rs b/src/test/ui/issues/issue-16250.rs
new file mode 100644
index 000000000..436e2a6ce
--- /dev/null
+++ b/src/test/ui/issues/issue-16250.rs
@@ -0,0 +1,9 @@
+#![deny(warnings)]
+
+pub struct Foo;
+
+extern "C" {
+ pub fn foo(x: (Foo)); //~ ERROR `extern` block uses type `Foo`
+}
+
+fn main() {}