We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de8d2e8 commit 946cb11Copy full SHA for 946cb11
src/test/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs
@@ -0,0 +1,14 @@
1
+#![feature(const_generics)]
2
+
3
+// All of these three items must be in `lib2` to reproduce the error
4
5
+pub trait TypeFn {
6
+ type Output;
7
+}
8
9
+pub struct GenericType<const B: i8>;
10
11
+// Removing the braces around `42` resolves the crash
12
+impl TypeFn for GenericType<{ 42 }> {
13
+ type Output = ();
14
src/test/ui/const-generics/issues/issue-73120.rs
@@ -0,0 +1,8 @@
+// check-pass
+// aux-build:const_generic_issues_lib.rs
+extern crate const_generic_issues_lib as lib2;
+fn unused_function(
+ _: <lib2::GenericType<42> as lib2::TypeFn>::Output
+) {}
+fn main() {}
0 commit comments