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 4b5878f commit 8c1a585Copy full SHA for 8c1a585
src/items/generics.md
@@ -240,6 +240,12 @@ 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
+```rust
244
+fn make_buf() -> [u8; 1024] {
245
+ [0x1; _]
246
+}
247
+```
248
+
249
r[items.generics.const.inferred.constraint]
250
It cannot be used in item signatures.
251
src/paths.md
@@ -65,6 +65,7 @@ GenericArgsConst ->
65
| LiteralExpression
66
| `-` LiteralExpression
67
| SimplePathSegment
68
+ | InferredConst
69
70
GenericArgsBinding ->
71
IDENTIFIER GenericArgs? `=` Type
0 commit comments