Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions src/types/inferred.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ r[type.inferred.intro]
The inferred type asks the compiler to infer the type if possible based on the
surrounding information available.

r[type.inferred.constraint]
It cannot be used in item signatures.

It is often used in generic arguments:
> [!EXAMPLE]
> The inferred type is often used in generic arguments:
>
> ```rust
> let x: Vec<_> = (0..10).collect();
> ```

```rust
let x: Vec<_> = (0..10).collect();
```
r[type.inferred.constraint]
The inferred type cannot be used in item signatures.

<!--
What else should be said here?
Expand Down