Require a box expression's type to be Sized

This commit is contained in:
Anton Golov
2021-08-20 16:25:52 +02:00
parent ba83b39d4e
commit b8fff95961
4 changed files with 7 additions and 3 deletions

View File

@@ -225,6 +225,8 @@ pub enum ObligationCauseCode<'tcx> {
SizedReturnType,
/// Yield type must be `Sized`.
SizedYieldType,
/// Box expression result type must be `Sized`.
SizedBoxType,
/// Inline asm operand type must be `Sized`.
InlineAsmSized,
/// `[T, ..n]` implies that `T` must be `Copy`.