\bool_set:Nn
  \l_tmpa_bool
  {
    \l_tmpa_box  % error on this line
  }

.
