Skip to content

Commit 0671bdb

Browse files
committed
reword #[test] attribute error on fn items
1 parent b76ee83 commit 0671bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax_ext/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn expand_test_or_bench(
5353
if let Annotatable::Item(i) = item { i }
5454
else {
5555
cx.parse_sess.span_diagnostic.span_fatal(item.span(),
56-
"#[test] attribute is only allowed on fn items").raise();
56+
"#[test] attribute is only allowed on non associated functions").raise();
5757
};
5858

5959
if let ast::ItemKind::Mac(_) = item.node {

0 commit comments

Comments
 (0)