We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51c6874 commit cc7294cCopy full SHA for cc7294c
src/test/ui/const-generics/issues/issue-62579-no-match.rs
@@ -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
src/test/ui/const-generics/issues/issue-62579-no-match.stderr
@@ -0,0 +1,8 @@
+warning: the feature `const_generics` is incomplete and may cause the compiler to crash
+ --> $DIR/issue-62579-no-match.rs:3:12
+ |
+LL | #![feature(const_generics)]
+ | ^^^^^^^^^^^^^^
+ = note: `#[warn(incomplete_features)]` on by default
0 commit comments