summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2093-infer-outlives/explicit-projection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfc-2093-infer-outlives/explicit-projection.rs')
-rw-r--r--tests/ui/rfc-2093-infer-outlives/explicit-projection.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/rfc-2093-infer-outlives/explicit-projection.rs b/tests/ui/rfc-2093-infer-outlives/explicit-projection.rs
new file mode 100644
index 000000000..00b895288
--- /dev/null
+++ b/tests/ui/rfc-2093-infer-outlives/explicit-projection.rs
@@ -0,0 +1,13 @@
+#![feature(rustc_attrs)]
+
+trait Trait<'x, T> where T: 'x {
+ type Type;
+}
+
+#[rustc_outlives]
+struct Foo<'a, A, B> where A: Trait<'a, B> //~ ERROR rustc_outlives
+{
+ foo: <A as Trait<'a, B>>::Type
+}
+
+fn main() {}