about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authordianne <diannes.gm@gmail.com>2025-03-14 03:51:54 -0700
committerdianne <diannes.gm@gmail.com>2025-04-16 15:42:13 -0700
commit93d13e98069478ab286d28b42333f74b88308a99 (patch)
treecbba009e1fe60e07d1c134effe0a76f35afedf0a /compiler/rustc_codegen_gcc/example/std_example.rs
parent4c4b61b730ee7b53918043ff403bbc8e2d6d0eb0 (diff)
downloadrust-93d13e98069478ab286d28b42333f74b88308a99.tar.gz
rust-93d13e98069478ab286d28b42333f74b88308a99.zip
add an unstable book chapter
- Clarifies the uses of implicit and explicit deref patterns
- Includes motivating examples for both syntaxes
- Shows the interaction with match ergonomics for reference types
- Cross-links with `string_deref_patterns` and `box_patterns`

The examples are contrived, but hopefully the intent comes across.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions