diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-10-10 10:37:57 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-12-10 03:08:22 +0000 |
| commit | d10fe26f39983c782f1a37a447f2c10c2ef561ba (patch) | |
| tree | 9cf5786605414d8b28f45f43321674c00f49804b /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | e6b883c74f49f32cb5d1cbad3457f2b8805a4a38 (diff) | |
| download | rust-d10fe26f39983c782f1a37a447f2c10c2ef561ba.tar.gz rust-d10fe26f39983c782f1a37a447f2c10c2ef561ba.zip | |
Point at capture points for non-`'static` reference crossing a `yield` point
```
error[E0759]: `self` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
--> $DIR/issue-72312.rs:10:24
|
LL | pub async fn start(&self) {
| ^^^^^ this data with an anonymous lifetime `'_`...
...
LL | require_static(async move {
| -------------- ...is required to live as long as `'static` here...
LL | &self;
| ----- ...and is captured here
|
note: `'static` lifetime requirement introduced by this trait bound
--> $DIR/issue-72312.rs:2:22
|
LL | fn require_static<T: 'static>(val: T) -> T {
| ^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0759`.
```
Fix #72312.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
