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.
2 parents 0f04386 + d24ba16 commit 65b1ef1Copy full SHA for 65b1ef1
src/types/inferred.md
@@ -10,14 +10,15 @@ r[type.inferred.intro]
10
The inferred type asks the compiler to infer the type if possible based on the
11
surrounding information available.
12
13
-r[type.inferred.constraint]
14
-It cannot be used in item signatures.
15
-
16
-It is often used in generic arguments:
+> [!EXAMPLE]
+> The inferred type is often used in generic arguments:
+>
+> ```rust
17
+> let x: Vec<_> = (0..10).collect();
18
+> ```
19
-```rust
-let x: Vec<_> = (0..10).collect();
20
-```
+r[type.inferred.constraint]
21
+The inferred type cannot be used in item signatures.
22
23
<!--
24
What else should be said here?
0 commit comments