aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/serde.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serde.rs b/tests/serde.rs
index 4c0cc96..f4af529 100644
--- a/tests/serde.rs
+++ b/tests/serde.rs
@@ -87,7 +87,7 @@ fn application_decode_error() {
fn deserialize<D: Deserializer>(d: &mut D) -> Result<Range10, D::Error> {
let x: usize = try!(Deserialize::deserialize(d));
if x > 10 {
- Err(serde::de::Error::syntax_error())
+ Err(serde::de::Error::syntax("more than 10"))
} else {
Ok(Range10(x))
}