Skip to content

Commit cc7294c

Browse files
committed
Add regression test for #62579
1 parent 51c6874 commit cc7294c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// run-pass
2+
3+
#![feature(const_generics)]
4+
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
5+
6+
#[derive(PartialEq, Eq)]
7+
struct NoMatch;
8+
9+
fn foo<const T: NoMatch>() -> bool {
10+
true
11+
}
12+
13+
fn main() {
14+
foo::<{NoMatch}>();
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2+
--> $DIR/issue-62579-no-match.rs:3:12
3+
|
4+
LL | #![feature(const_generics)]
5+
| ^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(incomplete_features)]` on by default
8+

0 commit comments

Comments
 (0)