We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d23931 commit 8f5f5bfCopy full SHA for 8f5f5bf
text/0000-maybe-dangling.md
@@ -22,7 +22,7 @@ For example, the following code is UB at the time of writing this RFC:
22
```rust
23
fn id<T>(x: T) -> T { x }
24
25
-fn unsound(x: Box<i32>)
+fn unsound(x: Box<i32>) {
26
let mut x = ManuallyDrop::new(x);
27
unsafe { x.drop() };
28
id(x); // or `let y = x;` or `mem::forget(x);`.
0 commit comments