Shenwenkun 9db703b468 git commit -m "feat: Add exercises for new Rust features
Add exercises for:
- const generics
- let-else statements
- generic associated types (GAT)
- async traits

These exercises help learners understand and practice new Rust features
introduced in recent versions."
2025-05-20 10:36:36 +08:00

16 lines
780 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Rust 新特性练习
这个章节包含了一些 Rust 最新特性的练习。通过这些练习,你将学习到:
1. const 泛型Rust 1.51+
2. GAT (Generic Associated Types) (Rust 1.65+)
3. let-else 语句Rust 1.65+
4. 异步特征Rust 1.75+
## 推荐阅读
* [Rust 1.51 发布说明](https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html)
* [Rust 1.65 发布说明](https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html)
* [Rust 1.75 发布说明](https://blog.rust-lang.org/2023/12/28/Rust-1.75.0.html)
* [Rust Reference: Generic Associated Types](https://doc.rust-lang.org/reference/items/associated-items.html#generic-associated-types-gats)
* [Rust Reference: const 泛型](https://doc.rust-lang.org/reference/items/generics.html#const-generics)