1 error[E0507]: cannot move out of an `Rc`
2 --> $DIR/borrowck-move-out-of-overloaded-auto-deref.rs:17:14
4 LL | let _x = Rc::new(vec![1, 2]).into_iter();
5 | ^^^^^^^^^^^^^^^^^^^ cannot move out of an `Rc`
7 error[E0507]: cannot move out of data in a `&` reference
8 --> $DIR/borrowck-move-out-of-overloaded-auto-deref.rs:17:14
10 LL | let _x = Rc::new(vec![1, 2]).into_iter();
13 | cannot move out of data in a `&` reference
16 error: aborting due to 2 previous errors
18 For more information about this error, try `rustc --explain E0507`.