summaryrefslogtreecommitdiffstats
path: root/tests/ui/underscore-lifetime/where-clause-trait-impl-region.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/underscore-lifetime/where-clause-trait-impl-region.rs')
-rw-r--r--tests/ui/underscore-lifetime/where-clause-trait-impl-region.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/ui/underscore-lifetime/where-clause-trait-impl-region.rs b/tests/ui/underscore-lifetime/where-clause-trait-impl-region.rs
deleted file mode 100644
index 09e5bbd84..000000000
--- a/tests/ui/underscore-lifetime/where-clause-trait-impl-region.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// revisions: rust2015 rust2018
-//[rust2018] edition:2018
-
-trait WithType<T> {}
-trait WithRegion<'a> { }
-
-trait Foo { }
-
-impl<T> Foo for Vec<T>
-where
- T: WithType<&u32>
-//[rust2015,rust2018]~^ ERROR `&` without an explicit lifetime name cannot be used here
-{ }
-
-fn main() {}