You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected to see an error that points me to a line in the file I edited, i.e. main.rs, so this is what rustc 1.8.0 would output:
<std macros>:5:8: 6:42 error: mismatched types:
expected `std::path::PathBuf`,
found `core::result::Result<_, _>`
(expected struct `std::path::PathBuf`,
found enum `core::result::Result`) [E0308]
<std macros>:5 return $ crate:: result:: Result:: Err (
<std macros>:6 $ crate:: convert:: From:: from ( err ) ) } } )
main.rs:4:5: 4:25 note: in this expansion of try! (defined in <std macros>)
<std macros>:5:8: 6:42 help: run `rustc --explain E0308` to see a detailed explanation
The key line here is this one main.rs:4:5: 4:25 note: in this expansion of try! (defined in <std macros>) that points me to line 4.
Instead I get the message that gives me no clue about where to look
<std macros>:5:8: 6:45 error: mismatched types [E0308]
<std macros>:5 return $ crate :: result :: Result :: Err (
^
<std macros>:5:8: 6:45 note: in this expansion of try! (defined in <std macros>)
<std macros>:5:8: 6:45 help: run `rustc --explain E0308` to see a detailed explanation
<std macros>:5:8: 6:45 note: expected type `std::path::PathBuf`
<std macros>:5:8: 6:45 note: found type `std::result::Result<_, _>`
Yes, I updated and I get expected result now, thank you!
<std macros>:5:8: 6:45 error: mismatched types [E0308]
<std macros>:5 return $ crate :: result :: Result :: Err (
^
src/main.rs:24:5: 24:25 note: in this expansion of try! (defined in <std macros>)
<std macros>:5:8: 6:45 help: run `rustc --explain E0308` to see a detailed explanation
<std macros>:5:8: 6:45 note: expected type `std::path::PathBuf`
<std macros>:5:8: 6:45 note: found type `std::result::Result<_, _>`
rustc does not show where the error that happened inside a macro originates from user code.
I tried this code:
I expected to see an error that points me to a line in the file I edited, i.e.
main.rs
, so this is whatrustc 1.8.0
would output:The key line here is this one
main.rs:4:5: 4:25 note: in this expansion of try! (defined in <std macros>)
that points me to line 4.Instead I get the message that gives me no clue about where to look
Meta
The text was updated successfully, but these errors were encountered: