Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rust 2018] Inconsistent anonymous lifetimes #52142

Closed
CryZe opened this issue Jul 7, 2018 · 2 comments
Closed

[Rust 2018] Inconsistent anonymous lifetimes #52142

CryZe opened this issue Jul 7, 2018 · 2 comments
Labels
A-edition-2018 Area: The 2018 edition A-lifetimes Area: Lifetimes / regions C-bug Category: This is a bug. F-rust_2018_preview `#![feature(rust_2018_preview)]`
Milestone

Comments

@CryZe
Copy link
Contributor

CryZe commented Jul 7, 2018

This is allowed by Rust 2018:

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

while this is not allowed:

fn foo<T: SomeTrait<'_>>() { ... }
@stokhos stokhos added F-rust_2018_preview `#![feature(rust_2018_preview)]` A-edition-2018-lints A-lifetimes Area: Lifetimes / regions and removed F-rust_2018_preview `#![feature(rust_2018_preview)]` labels Jul 8, 2018
@Mark-Simulacrum Mark-Simulacrum added F-rust_2018_preview `#![feature(rust_2018_preview)]` C-bug Category: This is a bug. labels Jul 11, 2018
@CryZe
Copy link
Contributor Author

CryZe commented Jul 21, 2018

@aturon
Copy link
Member

aturon commented Jul 24, 2018

Duplicate of #45667

@aturon aturon marked this as a duplicate of #45667 Jul 24, 2018
@aturon aturon closed this as completed Jul 24, 2018
@fmease fmease added the A-edition-2018 Area: The 2018 edition label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-edition-2018 Area: The 2018 edition A-lifetimes Area: Lifetimes / regions C-bug Category: This is a bug. F-rust_2018_preview `#![feature(rust_2018_preview)]`
Projects
None yet
Development

No branches or pull requests

6 participants