Closed
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