about summary refs log tree commit diff
path: root/tests/ui/macros/assert-macro-lifetimes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/assert-macro-lifetimes.rs')
-rw-r--r--tests/ui/macros/assert-macro-lifetimes.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/ui/macros/assert-macro-lifetimes.rs b/tests/ui/macros/assert-macro-lifetimes.rs
deleted file mode 100644
index cc259283204..00000000000
--- a/tests/ui/macros/assert-macro-lifetimes.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-//@ check-pass
-#[derive(PartialEq, Eq, Hash)]
-struct S;
-fn main() {
-    let foo = std::rc::Rc::new(std::cell::RefCell::new(std::collections::HashMap::<S, S>::new()));
-    // Ensure that the lifetimes of the borrow do not leak past the end of `main`.
-    assert!(matches!(foo.borrow().get(&S).unwrap(), S))
-}