We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c5bfe6 commit 39cf186Copy full SHA for 39cf186
typecheck/src/generics/constraint_builder.rs
@@ -4,6 +4,14 @@
4
//! type instantiations will not have any constraints, as they do not perform any
5
//! function calls in their declarations. As a consequence, only function calls
6
//! will be considered for all examples in this module.
7
+// FIXME: Actually, type instantiations can have constraints, because type definitions
8
+// can contain default fields which can be instantiated from a generic type's field, w/
9
+// structural typing
10
+// e.g.
11
+//
12
+// ```rust
13
+// type HasDefault[T](foo: T.make_foo())
14
+// ```
15
16
use std::collections::HashMap;
17
0 commit comments