Use "opaques" instead of "opaque types" in reporting

This commit is contained in:
Agus Zubiaga 2024-11-25 19:32:06 -03:00
parent f8e70f8786
commit 0a98580277
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -11054,8 +11054,8 @@ All branches in an `if` must have the same type!
4 Recursive := [Infinitely Recursive]
^^^^^^^^^
Recursion in opaques is only allowed if recursion happens behind a
tagged union, at least one variant of which is not recursive.
Recursion in opaque types is only allowed if recursion happens behind
a tagged union, at least one variant of which is not recursive.
"
);

View file

@ -3579,7 +3579,7 @@ impl AliasKind {
pub fn as_str_plural(&self) -> &'static str {
match self {
AliasKind::Structural => "aliases",
AliasKind::Opaque => "opaques",
AliasKind::Opaque => "opaque types",
}
}
}