]>
git.proxmox.com Git - rustc.git/blob - src/test/run-pass/nll/issue-53123-raw-pointer-cast.rs
3 #![allow(unused_variables)]
5 pub trait TryTransform
{
6 fn try_transform
<F
>(self, f
: F
)
12 impl<'a
, T
> TryTransform
for &'a
mut T
{
13 fn try_transform
<F
>(self, f
: F
)
15 // The bug was that `Self: Sized` caused the lifetime of `this` to "extend" for all
16 // of 'a instead of only lasting as long as the binding is used (for just that line).
20 let this
: *mut T
= self as *mut T
;