1
Fork 0

Adjust UI tests for unit_bindings

- Either explicitly annotate `let x: () = expr;` where `x` has unit
  type, or remove the unit binding to leave only `expr;` instead.
- Fix disjoint-capture-in-same-closure test
This commit is contained in:
许杰友 Jieyou Xu (Joe) 2023-06-12 16:55:36 +08:00
parent 37998ab508
commit edafbaffb2
No known key found for this signature in database
GPG key ID: C5FD5D32014FDB47
61 changed files with 117 additions and 117 deletions

View file

@ -3,8 +3,8 @@
fn main() {
let tuple = (((),),);
let _ = tuple. 0.0; // OK, whitespace
let _ = tuple.0. 0; // OK, whitespace
let () = tuple. 0.0; // OK, whitespace
let () = tuple.0. 0; // OK, whitespace
let _ = tuple./*special cases*/0.0; // OK, comment
let () = tuple./*special cases*/0.0; // OK, comment
}