about summary refs log tree commit diff
path: root/tests/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.rs
blob: cf734fb6f68d37c573aae501a9947c99febe7674 (plain)
1
2
3
4
5
6
7
//@ run-rustfix
use std::rc::Rc;

pub fn main() {
    let _x = Rc::new(vec![1, 2]).into_iter();
    //~^ ERROR [E0507]
}