\bool_set:Nn
  \l_tmpa_bool
  {
    \tl_set:Nn  % error on this line
      \l_tmpa_tl
      { bar }
    \c_true_bool
  }

.
