]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-87470.rs
3 #![feature(generic_const_exprs)]
4 #![allow(incomplete_features)]
6 pub trait TraitWithConst
{
7 const SOME_CONST
: usize;
10 pub trait OtherTrait
: TraitWithConst
{
11 fn some_fn(self) -> [u8 ; <Self as TraitWithConst
>::SOME_CONST
];
14 impl TraitWithConst
for f32 {
15 const SOME_CONST
: usize = 32;
18 impl OtherTrait
for f32 {
19 fn some_fn(self) -> [u8 ; <Self as TraitWithConst
>::SOME_CONST
] {