diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-05-07 19:35:25 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-05-17 20:31:13 +0000 |
| commit | d1d585d039ace2ea72db8772166773a80a661905 (patch) | |
| tree | 88ce9952605e7c791bd2a1c9edb671fb06867d6d /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 120049fab4e293c19fa1c5a09d68f89bcd940b36 (diff) | |
| download | rust-d1d585d039ace2ea72db8772166773a80a661905.tar.gz rust-d1d585d039ace2ea72db8772166773a80a661905.zip | |
Account for owning item lifetimes in suggestion and annotate tests as `run-rustfix`
```
error: lifetime may not live long enough
--> $DIR/lt-ref-self.rs:12:9
|
LL | fn ref_self(&self, f: &u32) -> &u32 {
| - - let's call the lifetime of this reference `'1`
| |
| let's call the lifetime of this reference `'2`
LL | f
| ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
|
help: consider introducing a named lifetime parameter and update trait if needed
|
LL | fn ref_self<'b>(&'b self, f: &'b u32) -> &'b u32 {
| ++++ ++ ++ ++
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
