diff options
| author | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-07-08 22:37:12 +0200 |
|---|---|---|
| committer | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-07-08 22:37:12 +0200 |
| commit | 25eb3829e5661ab85067188ca9e6586c29aed6e9 (patch) | |
| tree | 3ccb9a062c06d5e90c134b08b76b32082518b0e6 /tests/ui/unsized-locals/unsized-exprs-rpass.rs | |
| parent | 49421d1fa382fba84792e5d5dd7721c1c3e0e46e (diff) | |
| download | rust-25eb3829e5661ab85067188ca9e6586c29aed6e9.tar.gz rust-25eb3829e5661ab85067188ca9e6586c29aed6e9.zip | |
Error on moving unsized values rather than ICE'ing
Diffstat (limited to 'tests/ui/unsized-locals/unsized-exprs-rpass.rs')
| -rw-r--r-- | tests/ui/unsized-locals/unsized-exprs-rpass.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/ui/unsized-locals/unsized-exprs-rpass.rs b/tests/ui/unsized-locals/unsized-exprs-rpass.rs index 54ecd000343..ce31bd63f7c 100644 --- a/tests/ui/unsized-locals/unsized-exprs-rpass.rs +++ b/tests/ui/unsized-locals/unsized-exprs-rpass.rs @@ -18,11 +18,6 @@ impl std::ops::Add<i32> for A<[u8]> { } fn main() { - udrop::<[u8]>(loop { - break *foo(); - }); - udrop::<[u8]>(if true { *foo() } else { *foo() }); - udrop::<[u8]>({ *foo() }); udrop::<[u8]>((*foo())); *afoo() + 42; udrop as fn([u8]); |
