File tree Expand file tree Collapse file tree 9 files changed +17
-17
lines changed
compiler/rustc_error_messages/locales/en-US Expand file tree Collapse file tree 9 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,17 @@ ty_utils_address_and_deref_not_supported = dereferencing or taking the address i
1010
1111ty_utils_array_not_supported = array construction is not supported in generic constants
1212
13- ty_utils_block_not_supported = blocks are not supported in generic constant
13+ ty_utils_block_not_supported = blocks are not supported in generic constants
1414
15- ty_utils_never_to_any_not_supported = converting nevers to any is not supported in generic constant
15+ ty_utils_never_to_any_not_supported = converting nevers to any is not supported in generic constants
1616
1717ty_utils_tuple_not_supported = tuple construction is not supported in generic constants
1818
19- ty_utils_index_not_supported = indexing is not supported in generic constant
19+ ty_utils_index_not_supported = indexing is not supported in generic constants
2020
21- ty_utils_field_not_supported = field access is not supported in generic constant
21+ ty_utils_field_not_supported = field access is not supported in generic constants
2222
23- ty_utils_const_block_not_supported = const blocks are not supported in generic constant
23+ ty_utils_const_block_not_supported = const blocks are not supported in generic constants
2424
2525ty_utils_adt_not_supported = struct/enum construction is not supported in generic constants
2626
@@ -44,4 +44,4 @@ ty_utils_control_flow_not_supported = control flow is not supported in generic c
4444
4545ty_utils_inline_asm_not_supported = assembly is not supported in generic constants
4646
47- ty_utils_operation_not_supported = unsupported operation in generic constant
47+ ty_utils_operation_not_supported = unsupported operation in generic constants
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ error: overly complex generic constant
1010 --> $DIR/array-size-in-generic-struct-param.rs:19:15
1111 |
1212LL | arr: [u8; CFG.arr_size],
13- | ^^^^^^^^^^^^ field access is not supported in generic constant
13+ | ^^^^^^^^^^^^ field access is not supported in generic constants
1414 |
1515 = help: consider moving this anonymous constant into a `const` function
1616 = note: this operation may be supported in the future
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ error: overly complex generic constant
1111 --> $DIR/const-block-is-poly.rs:5:19
1212 |
1313LL | let _ = [0u8; const { std::mem::size_of::<T>() }];
14- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ const blocks are not supported in generic constant
14+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ const blocks are not supported in generic constants
1515 |
1616 = help: consider moving this anonymous constant into a `const` function
1717 = note: this operation may be supported in the future
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: overly complex generic constant
22 --> $DIR/let-bindings.rs:6:68
33 |
44LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
5- | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constant
5+ | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constants
66 |
77 = help: consider moving this anonymous constant into a `const` function
88 = note: this operation may be supported in the future
@@ -11,7 +11,7 @@ error: overly complex generic constant
1111 --> $DIR/let-bindings.rs:6:35
1212 |
1313LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
14- | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constant
14+ | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constants
1515 |
1616 = help: consider moving this anonymous constant into a `const` function
1717 = note: this operation may be supported in the future
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: overly complex generic constant
22 --> $DIR/unused_expr.rs:4:34
33 |
44LL | fn add<const N: usize>() -> [u8; { N + 1; 5 }] {
5- | ^^^^^^^^^^^^ blocks are not supported in generic constant
5+ | ^^^^^^^^^^^^ blocks are not supported in generic constants
66 |
77 = help: consider moving this anonymous constant into a `const` function
88 = note: this operation may be supported in the future
@@ -11,7 +11,7 @@ error: overly complex generic constant
1111 --> $DIR/unused_expr.rs:9:34
1212 |
1313LL | fn div<const N: usize>() -> [u8; { N / 1; 5 }] {
14- | ^^^^^^^^^^^^ blocks are not supported in generic constant
14+ | ^^^^^^^^^^^^ blocks are not supported in generic constants
1515 |
1616 = help: consider moving this anonymous constant into a `const` function
1717 = note: this operation may be supported in the future
@@ -20,7 +20,7 @@ error: overly complex generic constant
2020 --> $DIR/unused_expr.rs:16:38
2121 |
2222LL | fn fn_call<const N: usize>() -> [u8; { foo(N); 5 }] {
23- | ^^^^^^^^^^^^^ blocks are not supported in generic constant
23+ | ^^^^^^^^^^^^^ blocks are not supported in generic constants
2424 |
2525 = help: consider moving this anonymous constant into a `const` function
2626 = note: this operation may be supported in the future
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ LL | | let x: Option<Box<Self>> = None;
88LL | |
99LL | | 0
1010LL | | }],
11- | |_____^ blocks are not supported in generic constant
11+ | |_____^ blocks are not supported in generic constants
1212 |
1313 = help: consider moving this anonymous constant into a `const` function
1414 = note: this operation may be supported in the future
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ LL | | let x: Option<S> = None;
77LL | |
88LL | | 0
99LL | | }],
10- | |_____^ blocks are not supported in generic constant
10+ | |_____^ blocks are not supported in generic constants
1111 |
1212 = help: consider moving this anonymous constant into a `const` function
1313 = note: this operation may be supported in the future
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ LL | | let x: Option<Box<S>> = None;
77LL | |
88LL | | 0
99LL | | }],
10- | |_____^ blocks are not supported in generic constant
10+ | |_____^ blocks are not supported in generic constants
1111 |
1212 = help: consider moving this anonymous constant into a `const` function
1313 = note: this operation may be supported in the future
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: overly complex generic constant
22 --> $DIR/issue-77357.rs:6:46
33 |
44LL | fn bug<'a, T>() -> &'static dyn MyTrait<[(); { |x: &'a u32| { x }; 4 }]> {
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constant
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constants
66 |
77 = help: consider moving this anonymous constant into a `const` function
88 = note: this operation may be supported in the future
You can’t perform that action at this time.
0 commit comments