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:
parent
37998ab508
commit
edafbaffb2
61 changed files with 117 additions and 117 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue