Add tests for method name collision

cc #9
This commit is contained in:
Kogia-sima 2020-06-13 23:04:14 +09:00
parent 98e11b1163
commit 8864d0258c
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@ fn assert_render<T: TemplateOnce>(name: &str, template: T) {
assert_render_result(name, template.render_once());
}
trait ConflictWithSailFishRender {
fn render() {}
}
impl ConflictWithSailFishRender for u8 {}
impl ConflictWithSailFishRender for u16 {}
#[derive(TemplateOnce)]
#[template(path = "empty.stpl")]
struct Empty {}