diff options
| author | Remy Rakic <remy.rakic@gmail.com> | 2020-03-30 01:22:59 +0200 |
|---|---|---|
| committer | Remy Rakic <remy.rakic@gmail.com> | 2020-03-30 01:22:59 +0200 |
| commit | c73d5db21fa89c33064724219e1dd5f168449d55 (patch) | |
| tree | 79aa7ee6d4f7e950ca44467665819b4834c3e120 | |
| parent | 2a7644746b5c5cc7fe214a61fb443efceac06dc5 (diff) | |
| download | rust-c73d5db21fa89c33064724219e1dd5f168449d55.tar.gz rust-c73d5db21fa89c33064724219e1dd5f168449d55.zip | |
bless output of ui test nll/outlives-suggestion-simple.rs
trivial diagnostics wording change
| -rw-r--r-- | src/test/ui/nll/outlives-suggestion-simple.polonius.stderr | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/ui/nll/outlives-suggestion-simple.polonius.stderr b/src/test/ui/nll/outlives-suggestion-simple.polonius.stderr index 815744618f6..dbbda62d208 100644 --- a/src/test/ui/nll/outlives-suggestion-simple.polonius.stderr +++ b/src/test/ui/nll/outlives-suggestion-simple.polonius.stderr @@ -72,6 +72,8 @@ LL | (x, x) | = help: consider adding the following bound: `'a: 'c` +help: add bound `'a: 'b + 'c` + error: lifetime may not live long enough --> $DIR/outlives-suggestion-simple.rs:31:9 | @@ -106,16 +108,16 @@ LL | self.x | = help: consider adding the following bound: `'b: 'a` -error[E0521]: borrowed data escapes outside of function +error[E0521]: borrowed data escapes outside of associated function --> $DIR/outlives-suggestion-simple.rs:73:9 | LL | fn get_bar(&self) -> Bar2 { | ----- | | - | `self` is declared here, outside of the function body - | `self` is a reference that is only valid in the function body + | `self` declared here, outside of the associated function body + | `self` is a reference that is only valid in the associated function body LL | Bar2::new(&self) - | ^^^^^^^^^^^^^^^^ `self` escapes the function body here + | ^^^^^^^^^^^^^^^^ `self` escapes the associated function body here error: aborting due to 10 previous errors |
