summaryrefslogtreecommitdiffstats
path: root/tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs')
-rw-r--r--tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs b/tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs
deleted file mode 100644
index 05d3e1a43..000000000
--- a/tests/ui/higher-rank-trait-bounds/hrtb-debruijn-in-receiver.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// Test the case where the `Self` type has a bound lifetime that must
-// be adjusted in the fn signature. Issue #19537.
-
-use std::collections::HashMap;
-
-struct Foo<'a> {
- map: HashMap<usize, &'a str>
-}
-
-impl<'a> Foo<'a> {
- fn new() -> Foo<'a> { panic!() }
- fn insert(&'a mut self) { }
-}
-fn main() {
- let mut foo = Foo::new();
- foo.insert();
- foo.insert(); //~ ERROR cannot borrow
-}