Given this code,
fn main()
{
fail!("This is why you fail.")
}
the failure message looks like this
task '<main>' failed at 'This is why you fail.', test.rs:3
This is problematic as the useful information (the message passed to fail!)is buried inside the sentence. It'd be better if the failure message was on its own line, something akin to:
task '<main>' failed at test.rs:3, saying:
This is why you fail.
This format also allows for space to mention other useful information (e.g. issue #11704).
Given this code,
the failure message looks like this
This is problematic as the useful information (the message passed to
fail!)is buried inside the sentence. It'd be better if the failure message was on its own line, something akin to:This format also allows for space to mention other useful information (e.g. issue #11704).