\cs_new:Nn
  \module_foo:n
  { bar~#1 }
\cs_new_eq:NN  % error on this line
  \module_baz:n
  \module_bar:n
\module_baz:n
  { foo }
