You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd say so, yes. The example you gave fails to compile if you try to get the offset of the b field.
I'd say there is a missing call to require_type_is_sized in the match in compiler/rustc_hir_typeck/src/expr.rs. The arm for ADTs has it, the one for tuples doesn't.
I tried this code:
I expected the compilation to fail since the offset cannot be statically determined. Instead, the compilation succeeds.
The text was updated successfully, but these errors were encountered: