Skip to content

Commit

Permalink
Test zero copy deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 12, 2017
1 parent 1e18b8f commit 74668b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,12 @@ mod tests {
test_json::<E>(br#"{"Struct":{"t":true,"f":false}}"#);
}

#[test]
fn test_borrowed() {
let bytes = br#""borrowed""#.to_owned();
test_json::<&str>(&bytes);
}

#[test]
fn assert_deserializer() {
fn assert<'de, T: serde::Deserializer<'de>>() {}
Expand Down

0 comments on commit 74668b0

Please sign in to comment.