Closed
Description
This program:
pub fn main() {
let s: &str = "foo";
fail!(s);
}
generates this error:
<std-macros>:37:13: 37:36 error: instantiating a type parameter with an incompatible type `&str`, which does not fulfill `Send`
<std-macros>:37 ::std::rt::begin_unwind($msg, file!(), line!())
^~~~~~~~~~~~~~~~~~~~~~~
<std-macros>:32:5: 42:6 note: in expansion of fail!
badfail.rs:3:5: 3:14 note: expansion site
error: aborting due to previous error
It does point you to the right place if you read it close, but I missed it myself the first few times.