2021-08-27 11:04:57 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
2021-08-06 08:20:59 -05:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
2021-08-06 08:55:53 -05:00
|
|
|
// library portion of testing that `impl Trait<{ expr }>` doesnt
|
|
|
|
// ice because of a `DefKind::TyParam` parent
|
2021-08-06 08:20:59 -05:00
|
|
|
pub fn foo<const N: usize>(foo: impl Into<[(); N + 1]>) {
|
|
|
|
foo.into();
|
|
|
|
}
|