about summary refs log tree commit diff
path: root/tests/ui/impl-trait/xcrate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/impl-trait/xcrate.rs')
-rw-r--r--tests/ui/impl-trait/xcrate.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/xcrate.rs b/tests/ui/impl-trait/xcrate.rs
new file mode 100644
index 00000000000..fe106ff0557
--- /dev/null
+++ b/tests/ui/impl-trait/xcrate.rs
@@ -0,0 +1,11 @@
+// run-pass
+
+// aux-build:xcrate.rs
+
+extern crate xcrate;
+
+fn main() {
+//  NOTE line below commented out due to issue #45994
+//  assert_eq!(xcrate::fourway_add(1)(2)(3)(4), 10);
+    xcrate::return_closure_accessing_internal_fn()();
+}