Add regression test for #65675

This commit is contained in:
varkor 2019-10-22 14:07:20 +01:00
parent 9220558c24
commit 51c687446d
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,10 @@
// run-pass
// compile-flags: -Z chalk
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
pub struct Foo<T, const N: usize>([T; N]);
impl<T, const N: usize> Foo<T, {N}> {}
fn main() {}

View file

@ -0,0 +1,8 @@
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
--> $DIR/issue-65675.rs:4:12
|
LL | #![feature(const_generics)]
| ^^^^^^^^^^^^^^
|
= note: `#[warn(incomplete_features)]` on by default