diff options
Diffstat (limited to 'src/test/ui/generic-associated-types/unsatisfied-outlives-bound.rs')
-rw-r--r-- | src/test/ui/generic-associated-types/unsatisfied-outlives-bound.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/generic-associated-types/unsatisfied-outlives-bound.rs b/src/test/ui/generic-associated-types/unsatisfied-outlives-bound.rs deleted file mode 100644 index 7137d9237..000000000 --- a/src/test/ui/generic-associated-types/unsatisfied-outlives-bound.rs +++ /dev/null @@ -1,19 +0,0 @@ -trait ATy { - type Item<'a>: 'a; -} - -impl<'b> ATy for &'b () { - type Item<'a> = &'b (); - //~^ ERROR the type `&'b ()` does not fulfill the required lifetime -} - -trait StaticTy { - type Item<'a>: 'static; -} - -impl StaticTy for () { - type Item<'a> = &'a (); - //~^ ERROR the type `&'a ()` does not fulfill the required lifetime -} - -fn main() {} |