]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-move-out-of-overloaded-deref.nll.stderr
Update output for borrowck=migrate compare mode.
[rust.git] / src / test / ui / borrowck / borrowck-move-out-of-overloaded-deref.nll.stderr
1 error[E0507]: cannot move out of an `Rc`
2   --> $DIR/borrowck-move-out-of-overloaded-deref.rs:14:14
3    |
4 LL |     let _x = *Rc::new("hi".to_string());
5    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |              |
7    |              cannot move out of an `Rc`
8    |              help: consider removing the `*`: `Rc::new("hi".to_string())`
9
10 error[E0507]: cannot move out of data in a `&` reference
11   --> $DIR/borrowck-move-out-of-overloaded-deref.rs:14:14
12    |
13 LL |     let _x = *Rc::new("hi".to_string());
14    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |              |
16    |              cannot move out of data in a `&` reference
17    |              cannot move
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0507`.