summaryrefslogtreecommitdiffstats
path: root/tests/ui/moves/pin-mut-reborrow-infer-var-issue-107419.rs
blob: 0e952b06ee118164e148c4e5ca2a3a56a5f974f6 (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.get_mut());
    foo(r.get_mut()); //~ ERROR use of moved value
}