allow concrete self types in consts
This commit is contained in:
@@ -112,7 +112,7 @@ impl<'a> Resolver<'a> {
|
||||
match outer_res {
|
||||
Res::SelfTy(maybe_trait_defid, maybe_impl_defid) => {
|
||||
if let Some(impl_span) =
|
||||
maybe_impl_defid.and_then(|def_id| self.opt_span(def_id))
|
||||
maybe_impl_defid.and_then(|(def_id, _)| self.opt_span(def_id))
|
||||
{
|
||||
err.span_label(
|
||||
reduce_impl_span_to_impl_keyword(sm, impl_span),
|
||||
|
||||
Reference in New Issue
Block a user