about summary refs log tree commit diff
path: root/src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs')
-rw-r--r--src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs b/src/test/ui/underscore-lifetime/where-clause-trait-impl-region.rs
deleted file mode 100644
index 09e5bbd846d..00000000000
--- a/src/test/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() {}