summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/ty-outlives/projection-where-clause-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/nll/ty-outlives/projection-where-clause-trait.rs')
-rw-r--r--src/test/ui/nll/ty-outlives/projection-where-clause-trait.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/test/ui/nll/ty-outlives/projection-where-clause-trait.rs b/src/test/ui/nll/ty-outlives/projection-where-clause-trait.rs
deleted file mode 100644
index 1a40d3b4c..000000000
--- a/src/test/ui/nll/ty-outlives/projection-where-clause-trait.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-// Test that we are able to establish that `<T as
-// MyTrait<'a>>::Output: 'a` outlives `'a` (because the trait says
-// so).
-//
-// check-pass
-
-trait MyTrait<'a> {
- type Output: 'a;
-}
-
-fn foo<'a, T>() -> &'a ()
-where
- T: MyTrait<'a>,
-{
- bar::<T::Output>()
-}
-
-fn bar<'a, T>() -> &'a ()
-where
- T: 'a,
-{
- &()
-}
-
-fn main() {}