Last active
December 26, 2016 14:21
-
-
Save krakatoa/09f356ca7111707a264c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn a() { | |
| let name = b(); | |
| println!("Here the output is '()' Why? {:?}", name); | |
| } | |
| fn b() { | |
| let reader = env.get_reader().unwrap(); | |
| let db = reader.bind(&db_handle); | |
| let name = db.get::<&str>(&"Some-Key"); | |
| println!("Here the output is 'Some-Value' {:?}", name); | |
| name; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment