diff options
| author | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2022-02-15 19:24:12 -0800 |
|---|---|---|
| committer | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2022-02-15 20:04:43 -0800 |
| commit | ae32f43c50fc72ba2812c18053c34d1b94aa5e3f (patch) | |
| tree | 8f1840e2cc6f829b89b917fca05851d04a79fd2a /src | |
| parent | 393fdc10483da930cdbb00eabc3635030d2e776f (diff) | |
| download | rust-ae32f43c50fc72ba2812c18053c34d1b94aa5e3f.tar.gz rust-ae32f43c50fc72ba2812c18053c34d1b94aa5e3f.zip | |
fix assumption that ScalarPair Box is always a fat pointer
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/box/issue-78459-ice.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/box/issue-78459-ice.rs b/src/test/ui/box/issue-78459-ice.rs new file mode 100644 index 00000000000..89f75fea15b --- /dev/null +++ b/src/test/ui/box/issue-78459-ice.rs @@ -0,0 +1,6 @@ +// check-pass +#![feature(allocator_api)] + +fn main() { + Box::new_in((), &std::alloc::Global); +} |
