Skip to content

Commit

Permalink
Add regression test for #65675
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Oct 22, 2019
1 parent 9220558 commit 51c6874
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ui/const-generics/issues/issue-65675.rs
@@ -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() {}
8 changes: 8 additions & 0 deletions src/test/ui/const-generics/issues/issue-65675.stderr
@@ -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

0 comments on commit 51c6874

Please sign in to comment.