Skip to content

Instantly share code, notes, and snippets.

@rustyrazorblade
Created July 17, 2015 18:11
Show Gist options
  • Save rustyrazorblade/3865a4d26dd45cc7e15b to your computer and use it in GitHub Desktop.
Save rustyrazorblade/3865a4d26dd45cc7e15b to your computer and use it in GitHub Desktop.
try! issue
<std macros>:5:8: 6:42 error: mismatched types:
expected `()`,
found `core::result::Result<_, _>`
(expected (),
found enum `core::result::Result`) [E0308]
<std macros>:5 return $ crate:: result:: Result:: Err (
<std macros>:6 $ crate:: convert:: From:: from ( err ) ) } } )
<std macros>:1:1: 6:48 note: in expansion of try!
tests/traversals.rs:82:40: 82:65 note: expansion site
<std macros>:5:8: 6:42 help: run `rustc --explain E0308` to see a detailed explanation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment