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
With expr delimiters << and >>, trying to use the template <<a>> and <<b>> complains about and not being a field. Here is a full example that produces the error "no field and on type &HelloTemplate":
[[syntax]]
name = "mwe"expr_start = "<<"expr_end = ">>"
#[derive(Template)]#[template(source = "<<a>> and <<b>>", syntax = "mwe", ext="")]structHelloTemplate{a:u32,b:u32,}
Maybe worse, using (<<a>> and) <<b>> as the template produces "failed to parse template source".
With
expr
delimiters<<
and>>
, trying to use the template<<a>> and <<b>>
complains aboutand
not being a field. Here is a full example that produces the error "no fieldand
on type&HelloTemplate
":Maybe worse, using
(<<a>> and) <<b>>
as the template produces "failed to parse template source".Everything works fine if the delimiters are changed to eg
<!
and!>
. I have not experimented with other pairs.The text was updated successfully, but these errors were encountered: