]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/dont-evaluate-array-len-on-err-1.rs
1 #![feature(const_generics, const_evaluatable_checked)]
2 #![allow(incomplete_features)]
4 // This tests that during error handling for the "trait not implemented" error
5 // we dont try to evaluate std::mem::size_of::<Self::Assoc> causing an ICE
13 [Adt
; std
::mem
::size_of
::<Self::Assoc
>()]: ,
15 <[Adt
; std
::mem
::size_of
::<Self::Assoc
>()] as Foo
>::bar()
16 //~^ Error: the trait bound