1 error[E0507]: cannot move out of an `Rc`
2 --> $DIR/borrowck-move-out-of-overloaded-deref.rs:14:14
4 LL | let _x = *Rc::new("hi".to_string());
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
7 | cannot move out of an `Rc`
8 | help: consider removing the `*`: `Rc::new("hi".to_string())`
10 error[E0507]: cannot move out of data in a `&` reference
11 --> $DIR/borrowck-move-out-of-overloaded-deref.rs:14:14
13 LL | let _x = *Rc::new("hi".to_string());
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
16 | cannot move out of data in a `&` reference
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0507`.