summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr')
-rw-r--r--tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr b/tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr
new file mode 100644
index 000000000..65a0af0d2
--- /dev/null
+++ b/tests/ui/type-alias-impl-trait/missing_lifetime_bound.stderr
@@ -0,0 +1,11 @@
+error[E0700]: hidden type for `Opaque<'a, T>` captures lifetime that does not appear in bounds
+ --> $DIR/missing_lifetime_bound.rs:4:47
+ |
+LL | fn defining<'a, T>(x: &'a i32) -> Opaque<T> { x }
+ | -- ^
+ | |
+ | hidden type `&'a i32` captures the lifetime `'a` as defined here
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0700`.