pub fn library_definition_not_allowed<S>( file_id: FileId, reference_location: Option<Span>, name: S, ) -> Diagnosticwhere S: Into<String>,