Skip to content

improve case with both anonymous lifetime parameters #43269

Closed
@gaurikholkar-zz

Description

@gaurikholkar-zz

Address the case where both the regions are anonymous.
Driving example for this case is

12 |   fn foo(x: &mut Vec<&u8>, y:&u8) {
   |                      ---     --- these references must have the same lifetime
13 | 
14 |     x.push(y);
   |            ^ data from `y` flows into `x` here

cc @nikomatsakis

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions