summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/auxiliary/generics_of_parent_impl_trait.rs
blob: cd5b8161d08ba997beec3b1d7b52d12bc089a82d (plain)
1
2
3
4
5
6
7
8
#![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();
}