about summary refs log tree commit diff
path: root/tests/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs
blob: a66ce817be5e2b4a2051007b0643e926cba2bc68 (plain)
1
2
3
4
5
6
7
#![feature(generic_const_exprs)]

// 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();
}