summaryrefslogtreecommitdiffstats
path: root/tests/ui/moves/pin-mut-reborrow-infer-var-issue-107419.fixed
blob: 0b9a3bae9619ce82cfd4af40de89fba768657a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix
use std::pin::Pin;

fn foo(_: &mut ()) {}

fn main() {
    let mut uwu = ();
    let mut r = Pin::new(&mut uwu);
    foo(r.as_mut().get_mut());
    foo(r.get_mut()); //~ ERROR use of moved value
}