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

20 lines
320 B
Rust
Raw Normal View History

2024-03-11 17:33:11 -04:00
use sailfish::RenderOnce;
use sailfish_macros::RenderOnce;
2020-06-07 08:38:49 -04:00
2024-03-11 17:33:11 -04:00
#[derive(RenderOnce)]
2020-06-07 08:38:49 -04:00
#[template(patth = "foo.stpl")]
struct UnknownOption {
2024-03-11 17:33:11 -04:00
name: String,
2020-06-07 08:38:49 -04:00
}
fn main() {
2024-03-11 17:33:11 -04:00
println!(
"{}",
UnknownOption {
name: "Hanako".to_owned()
}
.render_once()
.unwrap()
);
2020-06-07 08:38:49 -04:00
}