-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-edition-2018Area: The 2018 editionArea: The 2018 editionC-bugCategory: This is a bug.Category: This is a bug.F-rust_2018_preview`#![feature(rust_2018_preview)]``#![feature(rust_2018_preview)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.WG-traits[RETIRED] Working group: Traits[RETIRED] Working group: Traits
Description
The following test case does not presently work, but ought to:
trait Trait<'a> { }
// Supporting `'_` here is #15872:
impl<T> Trait<'_> for T { }
// Supporting `'_` here is this issue:
fn foo<T>(t: T)
where T: Trait<'_>
{
}
fn main() {
foo(22);
}
This is, I believe, blocked on #15872, because the same work that enables '_
to expand to an early-bound region in that work ought to make supporting '_
in functions fairly straightforward.
shepmaster
Metadata
Metadata
Assignees
Labels
A-edition-2018Area: The 2018 editionArea: The 2018 editionC-bugCategory: This is a bug.Category: This is a bug.F-rust_2018_preview`#![feature(rust_2018_preview)]``#![feature(rust_2018_preview)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.WG-traits[RETIRED] Working group: Traits[RETIRED] Working group: Traits