Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c73d5db

Browse files
committed
bless output of ui test nll/outlives-suggestion-simple.rs
trivial diagnostics wording change
1 parent 2a76447 commit c73d5db

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/test/ui/nll/outlives-suggestion-simple.polonius.stderr

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ LL | (x, x)
7272
|
7373
= help: consider adding the following bound: `'a: 'c`
7474

75+
help: add bound `'a: 'b + 'c`
76+
7577
error: lifetime may not live long enough
7678
--> $DIR/outlives-suggestion-simple.rs:31:9
7779
|
@@ -106,16 +108,16 @@ LL | self.x
106108
|
107109
= help: consider adding the following bound: `'b: 'a`
108110

109-
error[E0521]: borrowed data escapes outside of function
111+
error[E0521]: borrowed data escapes outside of associated function
110112
--> $DIR/outlives-suggestion-simple.rs:73:9
111113
|
112114
LL | fn get_bar(&self) -> Bar2 {
113115
| -----
114116
| |
115-
| `self` is declared here, outside of the function body
116-
| `self` is a reference that is only valid in the function body
117+
| `self` declared here, outside of the associated function body
118+
| `self` is a reference that is only valid in the associated function body
117119
LL | Bar2::new(&self)
118-
| ^^^^^^^^^^^^^^^^ `self` escapes the function body here
120+
| ^^^^^^^^^^^^^^^^ `self` escapes the associated function body here
119121

120122
error: aborting due to 10 previous errors
121123

0 commit comments

Comments
 (0)