Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit edafbaf

Browse files
committedJun 12, 2023
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
1 parent 37998ab commit edafbaf

File tree

61 files changed

+117
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+117
-117
lines changed
 

‎tests/ui/assign-assign.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn test_assign() {
66
let y: () = x = 10;
77
assert_eq!(x, 10);
88
assert_eq!(y, ());
9-
let mut z = x = 11;
9+
let mut z: () = x = 11;
1010
assert_eq!(x, 11);
1111
assert_eq!(z, ());
1212
z = x = 12;
@@ -19,7 +19,7 @@ fn test_assign_op() {
1919
let y: () = x += 10;
2020
assert_eq!(x, 10);
2121
assert_eq!(y, ());
22-
let mut z = x += 11;
22+
let mut z: () = x += 11;
2323
assert_eq!(x, 21);
2424
assert_eq!(z, ());
2525
z = x += 12;

‎tests/ui/associated-type-bounds/dyn-impl-trait-type.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ fn def_et4() -> Et4 {
5959
pub fn use_et4() { assert_forall_tr2(def_et4().mk()); }
6060

6161
fn main() {
62-
let _ = use_et1();
63-
let _ = use_et2();
64-
let _ = use_et3();
65-
let _ = use_et4();
62+
use_et1();
63+
use_et2();
64+
use_et3();
65+
use_et4();
6666
}

0 commit comments

Comments
 (0)
Please sign in to comment.