fix a misleading comment in TB tests
This commit is contained in:
parent
8b10bda1e4
commit
e698ca1246
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ fn not_unpin_not_protected() {
|
|||
pub struct NotUnpin(#[allow(dead_code)] i32, PhantomPinned);
|
||||
|
||||
fn inner(x: &mut NotUnpin, f: fn(&mut NotUnpin)) {
|
||||
// `f` may mutate, but it may not deallocate!
|
||||
// `f` is allowed to deallocate `x`.
|
||||
f(x)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue