Rollup merge of #146559 - Jules-Bertholet:fix-typo, r=nnethercote
Fix typo in error message
This commit is contained in:
commit
070456bccf
5 changed files with 8 additions and 8 deletions
|
|
@ -84,7 +84,7 @@ middle_failed_writing_file =
|
|||
# Note: We only mention patterns here since the error can only occur with references, and those
|
||||
# are forbidden in const generics.
|
||||
middle_invalid_const_in_valtree = constant {$global_const_id} cannot be used as pattern
|
||||
.note = constants that reference mutable or external memory cannot be used as pattern
|
||||
.note = constants that reference mutable or external memory cannot be used as patterns
|
||||
|
||||
middle_layout_cycle =
|
||||
a cycle occurred during layout computation
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ error: constant BAD_PATTERN cannot be used as pattern
|
|||
LL | BAD_PATTERN => {},
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= note: constants that reference mutable or external memory cannot be used as pattern
|
||||
= note: constants that reference mutable or external memory cannot be used as patterns
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ error: constant extern_::C cannot be used as pattern
|
|||
LL | C => {}
|
||||
| ^
|
||||
|
|
||||
= note: constants that reference mutable or external memory cannot be used as pattern
|
||||
= note: constants that reference mutable or external memory cannot be used as patterns
|
||||
|
||||
error: constant mutable::C cannot be used as pattern
|
||||
--> $DIR/const_refs_to_static_fail_invalid.rs:42:9
|
||||
|
|
@ -23,7 +23,7 @@ error: constant mutable::C cannot be used as pattern
|
|||
LL | C => {}
|
||||
| ^
|
||||
|
|
||||
= note: constants that reference mutable or external memory cannot be used as pattern
|
||||
= note: constants that reference mutable or external memory cannot be used as patterns
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ error: constant REF_INTERIOR_MUT cannot be used as pattern
|
|||
LL | REF_INTERIOR_MUT => {},
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: constants that reference mutable or external memory cannot be used as pattern
|
||||
= note: constants that reference mutable or external memory cannot be used as patterns
|
||||
|
||||
warning: skipping const checks
|
||||
|
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ error: constant SLICE_MUT cannot be used as pattern
|
|||
LL | SLICE_MUT => true,
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= note: constants that reference mutable or external memory cannot be used as pattern
|
||||
= note: constants that reference mutable or external memory cannot be used as patterns
|
||||
|
||||
error: constant U8_MUT cannot be used as pattern
|
||||
--> $DIR/const_refers_to_static_cross_crate.rs:44:9
|
||||
|
|
@ -18,7 +18,7 @@ error: constant U8_MUT cannot be used as pattern
|
|||
LL | U8_MUT => true,
|
||||
| ^^^^^^
|
||||
|
|
||||
= note: constants that reference mutable or external memory cannot be used as pattern
|
||||
= note: constants that reference mutable or external memory cannot be used as patterns
|
||||
|
||||
error: constant U8_MUT2 cannot be used as pattern
|
||||
--> $DIR/const_refers_to_static_cross_crate.rs:53:9
|
||||
|
|
@ -26,7 +26,7 @@ error: constant U8_MUT2 cannot be used as pattern
|
|||
LL | U8_MUT2 => true,
|
||||
| ^^^^^^^
|
||||
|
|
||||
= note: constants that reference mutable or external memory cannot be used as pattern
|
||||
= note: constants that reference mutable or external memory cannot be used as patterns
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue