about summary refs log tree commit diff
path: root/tests/ui/self/elision/ref-struct.rs
AgeCommit message (Collapse)AuthorLines
2024-05-17Run `rustfmt` on modified testsEsteban Küber-2/+2
2024-05-17Account for owning item lifetimes in suggestion and annotate tests as ↵Esteban Küber-1/+2
`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 { | ++++ ++ ++ ++ ```
2023-01-11Move /src/test to /testsAlbert Larsan-0/+36