aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-08 20:14:55 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-08 20:14:55 +0100
commited89e5f027154c22fdde54a54bf69dcdf3a3ce00 (patch)
treee3dedadc5ccafb4e54d5162c89f1b017326975d8 /testing/tests
parent9397378e4ef5f2c433f1ef638b47cb34413e8ebb (diff)
downloadaskama-ed89e5f027154c22fdde54a54bf69dcdf3a3ce00.tar.gz
askama-ed89e5f027154c22fdde54a54bf69dcdf3a3ce00.tar.bz2
askama-ed89e5f027154c22fdde54a54bf69dcdf3a3ce00.zip
Remove type parameter defaults from impls (fixes #12)
Diffstat (limited to '')
-rw-r--r--testing/tests/simple.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 8115fe0..a04b3fa 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -110,7 +110,8 @@ fn test_option() {
#[derive(Template)]
#[template(path = "generics.html")]
-struct GenericsTemplate<T: std::fmt::Display, U> where U: std::fmt::Display {
+struct GenericsTemplate<T: std::fmt::Display, U = u8>
+ where U: std::fmt::Display {
t: T,
u: U,
}