Skip to content

Commit

Permalink
Apply const argument legalization to default value of ConstParam
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 15, 2024
1 parent 125d3a0 commit dde4a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ pub(crate) mod printing {
self.ty.to_tokens(tokens);
if let Some(default) = &self.default {
TokensOrDefault(&self.eq_token).to_tokens(tokens);
default.to_tokens(tokens);
print_const_argument(default, tokens);
}
}
}
Expand Down

0 comments on commit dde4a0f

Please sign in to comment.