Skip to content

Ref<T> and &T have different lifetime requirements #37785

Closed
@KiChjang

Description

@KiChjang

This does not compile: https://is.gd/aNuNEg

This compiles: https://is.gd/lInFDJ

Found when trying to solve servo/servo#13418 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-destructorsArea: Destructors (`Drop`, …)A-lifetimesArea: Lifetimes / regionsC-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