sailfish/integration-tests/tests/fails/invalid_option_value.rs

13 lines
284 B
Rust

use sailfish::TemplateOnce;
use sailfish_macros::TemplateOnce;
#[derive(TemplateOnce)]
#[template(path = "foo.stpl", escape=1)]
struct InvalidOptionValue {
name: String
}
fn main() {
println!("{}", InvalidOptionValue { name: "Hanako".to_owned() }.render_once().unwrap());
}