Skip to content

Commit 7d58616

Browse files
committed
Introduce the mismatched_lifetime_syntaxes lint
1 parent 385ee04 commit 7d58616

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pass/fat_ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ fn fat_ptr_via_local(a: &[u8]) -> &[u8] {
1919
x
2020
}
2121

22-
fn fat_ptr_from_struct(s: FatPtrContainer) -> &[u8] {
22+
fn fat_ptr_from_struct(s: FatPtrContainer<'_>) -> &[u8] {
2323
s.ptr
2424
}
2525

26-
fn fat_ptr_to_struct(a: &[u8]) -> FatPtrContainer {
26+
fn fat_ptr_to_struct(a: &[u8]) -> FatPtrContainer<'_> {
2727
FatPtrContainer { ptr: a }
2828
}
2929

0 commit comments

Comments
 (0)