We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f62d4d + a7ca8e4 commit 05d67e5Copy full SHA for 05d67e5
1 file changed
src/diagnostics.md
@@ -964,6 +964,7 @@ The compiler can provide several values to match on, for example:
964
- references to said slices and arrays.
965
- `"fn"`, `"unsafe fn"` or `"#[target_feature] fn"` when self is a function.
966
- `"{integer}"` and `"{float}"` if the type is a number but we haven't inferred it yet.
967
+ - `"{struct}"`, `"{enum}"` and `"{union}"` to match self as an ADT
968
- combinations of the above, like `"[{integral}; _]"`.
969
970
For example, the `Iterator` trait can be filtered in the following way:
0 commit comments