Closed
Description
Given the following code: link
trait Trait;
impl Trait for ();
enum Enum;
fn main() {
}
The current output is:
Compiling playground v0.0.1 (/playground)
error: expected one of `:`, `<`, `=`, `where`, or `{`, found `;`
--> src/main.rs:1:12
|
1 | trait Trait;
| ^ expected one of `:`, `<`, `=`, `where`, or `{`
error: could not compile `playground` due to previous error
Ideally the output should suggest adding {}
for each of the incorrect empty declaration/impl shown above. Thanks.