about summary refs log tree commit diff
path: root/tests/ui/moves/pin-mut-reborrow-infer-var-issue-107419.fixed
blob: 82b1ae57d99d79a257468fbe839e8c0dd55cd10b (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
}