summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr')
-rw-r--r--tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr
new file mode 100644
index 000000000..ade552c4b
--- /dev/null
+++ b/tests/ui/traits/associated_type_bound/check-trait-object-bounds-3.stderr
@@ -0,0 +1,15 @@
+error[E0597]: `s` does not live long enough
+ --> $DIR/check-trait-object-bounds-3.rs:15:34
+ |
+LL | z = f::<dyn X<Y = &str>>(&s);
+ | ---------------------^^-
+ | | |
+ | | borrowed value does not live long enough
+ | argument requires that `s` is borrowed for `'static`
+LL |
+LL | }
+ | - `s` dropped here while still borrowed
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0597`.