summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs')
-rw-r--r--src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs b/src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs
deleted file mode 100644
index 00100e0e9..000000000
--- a/src/test/ui/regions/regions-assoc-type-static-bound-in-trait-not-met.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Test that the compiler checks that the 'static bound declared in
-// the trait must be satisfied on the impl. Issue #20890.
-
-trait Foo {
- type Value: 'static;
- fn dummy(&self) {}
-}
-
-impl<'a> Foo for &'a i32 {
- type Value = &'a i32;
- //~^ ERROR the type `&'a i32` does not fulfill the required lifetime
-}
-
-impl<'a> Foo for i32 {
- // OK.
- type Value = i32;
-}
-
-fn main() {}