diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-30 10:33:37 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-30 13:55:17 +0200 |
| commit | b4e3e62c9cde00637fc2e69b24581ba77494035b (patch) | |
| tree | febd00751fa6caa1f704cdcabe5249a7643643e7 /src/test/ui/lifetimes | |
| parent | 39c67b2133702974efe03fea651e9b4a5cb2cbe1 (diff) | |
| download | rust-b4e3e62c9cde00637fc2e69b24581ba77494035b.tar.gz rust-b4e3e62c9cde00637fc2e69b24581ba77494035b.zip | |
Bless nll tests.
Diffstat (limited to 'src/test/ui/lifetimes')
| -rw-r--r-- | src/test/ui/lifetimes/lifetime-errors/issue_74400.nll.stderr | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/lifetimes/lifetime-errors/issue_74400.nll.stderr b/src/test/ui/lifetimes/lifetime-errors/issue_74400.nll.stderr index 422673b361a..2906c05864b 100644 --- a/src/test/ui/lifetimes/lifetime-errors/issue_74400.nll.stderr +++ b/src/test/ui/lifetimes/lifetime-errors/issue_74400.nll.stderr @@ -1,10 +1,13 @@ error[E0310]: the parameter type `T` may not live long enough --> $DIR/issue_74400.rs:12:5 | -LL | fn g<T>(data: &[T]) { - | - help: consider adding an explicit lifetime bound...: `T: 'static` LL | f(data, identity) | ^^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds + | +help: consider adding an explicit lifetime bound... + | +LL | fn g<T: 'static>(data: &[T]) { + | +++++++++ error[E0308]: mismatched types --> $DIR/issue_74400.rs:12:5 |
