]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-move-out-of-overloaded-auto-deref.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / 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 }