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.stderr2
1 files changed, 2 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
index ade552c4b..c7af71a42 100644
--- 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
@@ -1,6 +1,8 @@
error[E0597]: `s` does not live long enough
--> $DIR/check-trait-object-bounds-3.rs:15:34
|
+LL | let s = String::from("abcdef");
+ | - binding `s` declared here
LL | z = f::<dyn X<Y = &str>>(&s);
| ---------------------^^-
| | |