diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-06-12 16:55:36 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2023-06-12 20:24:48 +0800 |
| commit | edafbaffb26d8be00f6dd8ad0dbaa57f1caf1610 (patch) | |
| tree | 37b2fdaa33085fc61643e0d52ad366031e97346f /tests/ui/empty-allocation-rvalue-non-null.rs | |
| parent | 37998ab508d5d9fa0d465d7b535dc673087dda8f (diff) | |
| download | rust-edafbaffb26d8be00f6dd8ad0dbaa57f1caf1610.tar.gz rust-edafbaffb26d8be00f6dd8ad0dbaa57f1caf1610.zip | |
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
Diffstat (limited to 'tests/ui/empty-allocation-rvalue-non-null.rs')
| -rw-r--r-- | tests/ui/empty-allocation-rvalue-non-null.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/empty-allocation-rvalue-non-null.rs b/tests/ui/empty-allocation-rvalue-non-null.rs index 2f5a5c4bbc6..ad0f2203106 100644 --- a/tests/ui/empty-allocation-rvalue-non-null.rs +++ b/tests/ui/empty-allocation-rvalue-non-null.rs @@ -4,5 +4,5 @@ // pretty-expanded FIXME #23616 pub fn main() { - let x = *Box::new(()); + let x: () = *Box::new(()); } |
