\cs_new:Nn
  \example:bar  % error on this line
  { foo }
  { bar }
  { baz }

.
