Skip to content

Commit cebf2b4

Browse files
committed
Update let_unit.fixed
1 parent ec72942 commit cebf2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ui/let_unit.fixed

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ fn main() {
1515
let _y = 1; // this is fine
1616
let _z = ((), 1); // this as well
1717
if true {
18+
// do not lint this, since () is explicit
1819
let _a = ();
1920
}
20-
let a = ();
2121

22-
// do not lint this
22+
// do not lint this, since () is explicit
2323
let () = dummy();
2424
let () = ();
2525
() = dummy();

0 commit comments

Comments
 (0)