Accept implicitly borrowed data inside of Option

This commit is contained in:
David Tolnay
2018-05-08 12:19:09 -07:00
parent 4ad140ea70
commit b2b36e1764
2 changed files with 40 additions and 2 deletions
+5
View File
@@ -638,6 +638,11 @@ fn test_gen() {
}
assert::<SkippedVariant<X>>();
#[derive(Deserialize)]
struct ImpliciltyBorrowedOption<'a> {
option: std::option::Option<&'a str>,
}
}
//////////////////////////////////////////////////////////////////////////