rust/tests/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs
2023-01-11 09:32:08 +00:00

9 lines
252 B
Rust

#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
// library portion of testing that `impl Trait<{ expr }>` doesnt
// ice because of a `DefKind::TyParam` parent
pub fn foo<const N: usize>(foo: impl Into<[(); N + 1]>) {
foo.into();
}