mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-14 19:27:07 +00:00
Accept implicitly borrowed data inside of Option
This commit is contained in:
2 files changed
+40
-2
No files matched your search
@@ -638,6 +638,11 @@ fn test_gen() {
|
||||
}
|
||||
|
||||
assert::<SkippedVariant<X>>();
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct ImpliciltyBorrowedOption<'a> {
|
||||
option: std::option::Option<&'a str>,
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in new issue
Block a user