Skip to content

Commit 9d11bda

Browse files
committed
resolve: shorten wording on private constructor error
1 parent 7140c02 commit 9d11bda

File tree

4 files changed

+56
-56
lines changed

4 files changed

+56
-56
lines changed

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2401,7 +2401,7 @@ impl<'a> Resolver<'a> {
24012401
let first_field = fields.first().expect("empty field list in the map");
24022402
err.span_label(
24032403
fields.iter().fold(first_field.span, |acc, field| acc.to(field.span)),
2404-
"a tuple struct constructor is private if any of its fields is private",
2404+
"a constructor is private if any of the fields is private",
24052405
);
24062406
err
24072407
} else {

0 commit comments

Comments
 (0)