summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/closure-in-foreign-crate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/closure-in-foreign-crate.rs')
-rw-r--r--tests/ui/consts/closure-in-foreign-crate.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/consts/closure-in-foreign-crate.rs b/tests/ui/consts/closure-in-foreign-crate.rs
new file mode 100644
index 000000000..fc8f480e7
--- /dev/null
+++ b/tests/ui/consts/closure-in-foreign-crate.rs
@@ -0,0 +1,8 @@
+// aux-build:closure-in-foreign-crate.rs
+// build-pass
+
+extern crate closure_in_foreign_crate;
+
+const _: () = closure_in_foreign_crate::test();
+
+fn main() {}