From 06e75aa659abc5af02cae1b32fded969ca1ed844 Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Fri, 7 Aug 2026 12:07:56 +0200 Subject: [PATCH] Fix confusing typo in 2026/move-trait Negative impls cannot be unsafe (that's E0198). --- src/2026/move-trait.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/2026/move-trait.md b/src/2026/move-trait.md index 866eafe0..ae6bdbb7 100644 --- a/src/2026/move-trait.md +++ b/src/2026/move-trait.md @@ -52,7 +52,7 @@ Types implementing `!Move` cannot be moved and must keep a stable address for th ```rust // Types implementing !Forget must have their destructors run -unsafe impl !Forget for ScopedTaskHandle {} +impl !Forget for ScopedTaskHandle {} ``` With `!Forget`, we could build safe scoped spawn: the handle's destructor joins the task, and because the handle can't be forgotten, the join is guaranteed. This unblocks patterns that are currently impossible in safe Rust.