Skip to content

Commit 99b6247

Browse files
Beef up test
1 parent 0163ccc commit 99b6247

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/compile-fail/consider-removing-last-semi.rs

+6
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ fn f() -> String { //~ ERROR E0269
1414
"bla".to_string(); //~ HELP consider removing this semicolon
1515
}
1616

17+
fn g() -> String { //~ ERROR E0269
18+
//~^ HELP detailed explanation
19+
"this won't work".to_string();
20+
"removeme".to_string(); //~ HELP consider removing this semicolon
21+
}
22+
1723
fn main() {}

0 commit comments

Comments
 (0)