diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-02-27 02:34:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-27 02:34:22 +0100 |
| commit | f0c98b15cc82ac711432e038166fb2a8c5f32f10 (patch) | |
| tree | 24958c7630b16fb498596522e9b4003c4210a975 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | cabe97272d782294e0d642135f3d8b13579b2929 (diff) | |
| parent | 75d1e303af04758c26e1aee63f2f0afd53dfd6f8 (diff) | |
| download | rust-f0c98b15cc82ac711432e038166fb2a8c5f32f10.tar.gz rust-f0c98b15cc82ac711432e038166fb2a8c5f32f10.zip | |
Rollup merge of #82370 - 0yoyoyo:update-issue-81650-point-anonymous-lifetime, r=estebank
Improve anonymous lifetime note to indicate the target span
Improvement for #81650
Cc #81995
Message after this improvement:
(Improve note in the middle)
```
error[E0311]: the parameter type `T` may not live long enough
--> src/main.rs:25:11
|
24 | fn play_with<T: Animal + Send>(scope: &Scope, animal: T) {
| -- help: consider adding an explicit lifetime bound...: `T: 'a +`
25 | scope.spawn(move |_| {
| ^^^^^
|
note: the parameter type `T` must be valid for the anonymous lifetime defined on the function body at 24:40...
--> src/main.rs:24:40
|
24 | fn play_with<T: Animal + Send>(scope: &Scope, animal: T) {
| ^^^^^
note: ...so that the type `[closure@src/main.rs:25:17: 27:6]` will meet its required lifetime bounds
--> src/main.rs:25:11
|
25 | scope.spawn(move |_| {
| ^^^^^
```
r? ``````@estebank``````
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
