]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issue-80561-incorrect-param-env.rs
2 #![feature(const_generics, const_evaluatable_checked)]
3 #![allow(incomplete_features)]
5 // This tests that the correct `param_env` is used so that
6 // attempting to normalize `Self::N` does not cause an ICE.
8 pub struct Foo
<const N
: usize>;
10 impl<const N
: usize> Foo
<N
> {
20 Foo
::<{ Self::N }
>::foo();