-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)P-highHigh priorityHigh priorityT-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Description
Ever since #55937, the following program (playground) gives an unexpected error from NLL:
#![feature(nll)]
trait Foo {
const Blah: &'static str;
}
struct Placeholder;
impl Foo for Placeholder {
const Blah: &'static str = "hi";
}
fn foo(x: &str) {
match x {
<Placeholder as Foo>::Blah => { }
_ => { }
}
}
First reported by @Xanewok in this comment, because this broke the RLS.
cc @davidtwco
Metadata
Metadata
Assignees
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)P-highHigh priorityHigh priorityT-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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.