summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/auxiliary/xcrate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/impl-trait/auxiliary/xcrate.rs')
-rw-r--r--src/test/ui/impl-trait/auxiliary/xcrate.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/ui/impl-trait/auxiliary/xcrate.rs b/src/test/ui/impl-trait/auxiliary/xcrate.rs
deleted file mode 100644
index ac016258b..000000000
--- a/src/test/ui/impl-trait/auxiliary/xcrate.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-// NOTE commented out due to issue #45994
-//pub fn fourway_add(a: i32) -> impl Fn(i32) -> impl Fn(i32) -> impl Fn(i32) -> i32 {
-// move |b| move |c| move |d| a + b + c + d
-//}
-
-fn some_internal_fn() -> u32 {
- 1
-}
-
-fn other_internal_fn() -> u32 {
- 1
-}
-
-// See #40839
-pub fn return_closure_accessing_internal_fn() -> impl Fn() -> u32 {
- || {
- some_internal_fn() + 1
- }
-}
-
-pub fn return_internal_fn() -> impl Fn() -> u32 {
- other_internal_fn
-}