Closed
Description
Minimal test case:
use std::*;
fn main() {
fail!("");
}
rustc output:
<core-macros>:45:12: 45:48 error: unresolved import: could not find `sys` in `std::std`.
<core-macros>:45 ::std::sys::FailWithCause::fail_with($msg, file!(), line!())
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<core-macros>:40:4: 50:5 note: in expansion of fail!
x.rs:3:1: 3:11 note: expansion site
<core-macros>:45:12: 45:48 error: use of undeclared module `::std::sys::FailWithCause`
<core-macros>:45 ::std::sys::FailWithCause::fail_with($msg, file!(), line!())
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<core-macros>:40:4: 50:5 note: in expansion of fail!
x.rs:3:1: 3:11 note: expansion site
<core-macros>:45:12: 45:48 error: unresolved name `std::sys::FailWithCause::fail_with`.
<core-macros>:45 ::std::sys::FailWithCause::fail_with($msg, file!(), line!())
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<core-macros>:40:4: 50:5 note: in expansion of fail!
x.rs:3:1: 3:11 note: expansion site
error: aborting due to 3 previous errors
Rust 0.7, Ubuntu 13.04, 64-bit.