You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
err.span_label(attr_sp,"the `#[test]` macro causes a function to be run on a test and has no effect on non-functions")
144
-
.span_label(item.span,format!("expected a non-associated function, found {} {}", item.kind.article(), item.kind.descr()))
145
-
.span_suggestion(attr_sp,"replace with conditional compilation to make the item only exist when tests are being run","#[cfg(test)]",Applicability::MaybeIncorrect)
146
-
.emit();
147
-
148
-
returnvec![Annotatable::Item(item)];
149
137
};
150
138
151
139
// has_*_signature will report any errors in the type so compilation
0 commit comments