summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/region-object-lifetime-5.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/regions/region-object-lifetime-5.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/regions/region-object-lifetime-5.rs b/tests/ui/regions/region-object-lifetime-5.rs
index ad3593671..307bbcbd5 100644
--- a/tests/ui/regions/region-object-lifetime-5.rs
+++ b/tests/ui/regions/region-object-lifetime-5.rs
@@ -8,7 +8,7 @@ trait Foo {
// Here, the object is bounded by an anonymous lifetime and returned
// as `&'static`, so you get an error.
fn owned_receiver(x: Box<dyn Foo>) -> &'static () {
- x.borrowed() //~ ERROR cannot return reference to local data `*x`
+ x.borrowed() //~ ERROR cannot return value referencing local data `*x`
}
fn main() {}