Closed
Description
The following produces no warnings or errors:
#[must_use = "function with no return type"]
fn foo() {}
fn main() {
foo();
}
Is this intended? Shouldn't it produce a lint warning on the attribute? This is a good mentoring issue, I can bang out instructions once I get an answer (fortunately this doesn't seem to involve hygiene this time so hopefully I should get it right... @petrochenkov)