fix a misleading comment in TB tests

This commit is contained in:
sun-jacobi 2024-08-22 16:20:18 +02:00
parent 8b10bda1e4
commit e698ca1246

View file

@ -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)
}