Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
const-generics
/
auxiliary
/
generics_of_parent_impl_trait.rs
blob: a66ce817be5e2b4a2051007b0643e926cba2bc68 [
file
] [
log
] [
blame
]
#![
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
();
}