Skip to content
Open
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
1 change: 1 addition & 0 deletions src/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ The compiler can provide several values to match on, for example:
- references to said slices and arrays.
- `"fn"`, `"unsafe fn"` or `"#[target_feature] fn"` when self is a function.
- `"{integer}"` and `"{float}"` if the type is a number but we haven't inferred it yet.
- `"{struct}"`, `"{enum}"` and `"{union}"` to match self as an ADT
- combinations of the above, like `"[{integral}; _]"`.

For example, the `Iterator` trait can be filtered in the following way:
Expand Down
Loading