mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
16 lines
247 B
Rust
16 lines
247 B
Rust
//@ 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!
|
|
}
|