summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.rs
blob: 5cb8ceaca0866fce1337d3749f81282c149b4894 (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]
}