fn report_path_referencing_field<'db>(
db: &'db dyn Db,
id: &SpannedIdentifier<'_>,
base: NameResolutionSym<'_>,
) -> ReportedExpand description
Reports an error if the user gave a path like Foo.Bar and Foo wound up being a class
that doesn’t have nested items.