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 766bbd3 commit f5f99d4Copy full SHA for f5f99d4
src/items/generics.md
@@ -227,6 +227,22 @@ fn generic<const B: bool>() {
227
}
228
```
229
230
+r[items.generics.const.inferred]
231
+
232
+r[items.generics.const.inferred.syntax]
233
+```grammar,types
234
+@root InferredConst ->
235
+ `_`
236
+ | `(` InferredConst `)`
237
+```
238
239
+r[items.generics.const.inferred.intro]
240
+The inferred const asks the compiler to infer the const argument if possible
241
+based on the surrounding information available.
242
243
+r[items.generics.const.inferred.constraint]
244
+It cannot be used in item signatures.
245
246
r[items.generics.where]
247
## Where clauses
248
0 commit comments