rust/tests/crashes/125680.rs

16 lines
247 B
Rust
Raw Normal View History

2024-06-08 11:36:21 -05:00
//@ known-bug: rust-lang/rust#125680
//@ edition:2021
#![feature(generic_const_exprs)]
use core::fmt::Debug;
struct Inline<T>
where
[(); std::mem::offset_of!((T,), 0)]:,
{}
fn main() {
let dst = Inline::<dyn Debug>::new(0); // BANG!
}