Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let opt = Some(String::from("Hello World"));
- //ERRORS: let _checked = opt.map::<&String, _>(|x| &x);
- let _checked = opt.map::<*const String, _>(|x| &x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement