]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.rs
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
[rust.git] / src / test / ui / borrowck / borrowck-move-out-of-overloaded-auto-deref.rs
1 use std::rc::Rc;
2
3 pub fn main() {
4     let _x = Rc::new(vec![1, 2]).into_iter();
5     //~^ ERROR [E0507]
6 }