Skip to content

[Rust 2018] Inconsistent anonymous lifetimes #52142

Closed
@CryZe

Description

@CryZe

This is allowed by Rust 2018:

impl<T: SomeTrait<'_>> SomeType<T> { ... }

while this is not allowed:

fn foo<T: SomeTrait<'_>>() { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-edition-2018Area: The 2018 editionA-lifetimesArea: Lifetimes / regionsC-bugCategory: This is a bug.F-rust_2018_preview`#![feature(rust_2018_preview)]`

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions