]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/conservative_is_privately_uninhabited_uses_correct_param_env-1.rs
2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
5 // This tests that the `conservative_is_privately_uninhabited` fn doesn't cause
6 // ICEs by trying to evaluate `T::ASSOC` with an incorrect `ParamEnv`.
9 const ASSOC
: usize = 1;
12 #[allow(unused_tuple_struct_fields)]
13 struct Iced
<T
: Foo
>(T
, [(); T
::ASSOC
])
23 let _iced
: Iced
<T
> = return;