]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0507.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / error-codes / E0507.stderr
1 error[E0507]: cannot move out of dereference of `Ref<'_, TheDarkKnight>`
2   --> $DIR/E0507.rs:12:5
3    |
4 LL |     x.borrow().nothing_is_true();
5    |     ^^^^^^^^^^^-----------------
6    |     |          |
7    |     |          value moved due to this method call
8    |     move occurs because value has type `TheDarkKnight`, which does not implement the `Copy` trait
9    |
10 note: this function takes ownership of the receiver `self`, which moves value
11   --> $DIR/E0507.rs:6:24
12    |
13 LL |     fn nothing_is_true(self) {}
14    |                        ^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0507`.