mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 14:40:37 +00:00
15 lines
281 B
Rust
15 lines
281 B
Rust
//@ known-bug: #121429
|
|
|
|
#![feature(generic_const_exprs)]
|
|
|
|
struct FixedI8<const X: usize>;
|
|
const FRAC_LHS: usize = 0;
|
|
const FRAC_RHS: usize = 1;
|
|
|
|
pub trait True {}
|
|
|
|
impl<const N: usize = { const { 3 } }> PartialEq<FixedI8<FRAC_RHS>> for FixedI8<FRAC_LHS> where
|
|
If<{}>: True
|
|
{
|
|
}
|