]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-move-out-of-overloaded-deref.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / borrowck / borrowck-move-out-of-overloaded-deref.stderr
1 error[E0507]: cannot move out of an `Rc`
2   --> $DIR/borrowck-move-out-of-overloaded-deref.rs:4:14
3    |
4 LL |     let _x = *Rc::new("hi".to_string());
5    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `String`, which does not implement the `Copy` trait
6    |
7 help: consider removing the dereference here
8    |
9 LL -     let _x = *Rc::new("hi".to_string());
10 LL +     let _x = Rc::new("hi".to_string());
11    |
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0507`.