mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
12 lines
272 B
Rust
12 lines
272 B
Rust
//@ known-bug: rust-lang/rust#124894
|
|
//@ compile-flags: -Znext-solver=coherence
|
|
|
|
#![feature(generic_const_exprs)]
|
|
|
|
pub trait IsTrue<const mem: bool> {}
|
|
impl<T> IsZST for T where (): IsTrue<{ std::mem::size_of::<T>() == 0 }> {}
|
|
|
|
pub trait IsZST {}
|
|
|
|
impl IsZST for IsZST {}
|