You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![feature(allocator_api)]structB{}structA<'ctx>{b:&'ctxB,}unsafeimpl std::alloc::AllocatorforA<'_>{fnallocate(&self,layout: std::alloc::Layout,) -> Result<std::ptr::NonNull<[u8]>, std::alloc::AllocError>{Err(std::alloc::AllocError)}unsafefndeallocate(&self,ptr: std::ptr::NonNull<u8>,layout: std::alloc::Layout){}}fnmain(){let b = B{};let a = A{b:&b };Box::new_in(1, a);}
thread 'rustc' panicked at 'assertion failed: i < this.fields.count()', /rustc/547a6ffee0cf4da9929a9e3d49546dc87d607735/compiler/rustc_middle/src/ty/layout.rs:2290:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.58.0-nightly (547a6ffee 2021-10-21) running on x86_64-unknown-linux-gnu
note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
warning: `ttt` (bin "ttt") generated 5 warnings
error: could not compile `ttt`; 5 warnings emitted
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: