diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-06-12 03:14:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-12 03:14:51 +0200 |
| commit | 2d9513b98cd2c2a59a12394cbb90fb4ca520b6b1 (patch) | |
| tree | 815654aad2fdee3fe4f307054374b0bfbc213cf7 /compiler/rustc_resolve | |
| parent | b3ddf3cae21340d41c091c9839779029fe512c65 (diff) | |
| parent | 4882ea4b3c47749743df90718cdafa5637706b9d (diff) | |
| download | rust-2d9513b98cd2c2a59a12394cbb90fb4ca520b6b1.tar.gz rust-2d9513b98cd2c2a59a12394cbb90fb4ca520b6b1.zip | |
Rollup merge of #142157 - Enselic:trivial-anon-const-use-cases, r=compiler-errors
rustc_resolve: Improve `resolve_const_param_in_non_trivial_anon_const` wording In some contexts, const expressions are OK. Add a `here` to the error message to clarify this. Closes rust-lang/rust#79429 which has 15 x 👍
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/messages.ftl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/messages.ftl b/compiler/rustc_resolve/messages.ftl index 38cdfa72a14..58942474e32 100644 --- a/compiler/rustc_resolve/messages.ftl +++ b/compiler/rustc_resolve/messages.ftl @@ -119,7 +119,7 @@ resolve_const_param_in_enum_discriminant = const parameters may not be used in enum discriminant values resolve_const_param_in_non_trivial_anon_const = - const parameters may only be used as standalone arguments, i.e. `{$name}` + const parameters may only be used as standalone arguments here, i.e. `{$name}` resolve_constructor_private_if_any_field_private = a constructor is private if any of the fields is private |
