Closed
Description
fn foo() -> int { 1; }
fn main() {}
emits an error like
<anon>:11:28: 11:28 note: consider removing this semicolon:
<anon>:11 fn foo() -> int { 1; }
^
<anon>:11:9: 11:31 error: not all control paths return a value
<anon>:11 fn foo() -> int { 1; }
^~~~~~~~~~~~~~~~~~~~~~
This could be mildly confusing when there are multiple error messages, and so someone may misinterpret some note as being attached to a previous error.