fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0507]: cannot move out of dereference of `Ref<'_, TheDarkKnight>` 2 --> $DIR/E0507.rs:12:5 3 | 4LL | x.borrow().nothing_is_true(); 5 | ^^^^^^^^^^ ----------------- value moved due to this method call 6 | | 7 | move occurs because value has type `TheDarkKnight`, which does not implement the `Copy` trait 8 | 9note: `TheDarkKnight::nothing_is_true` takes ownership of the receiver `self`, which moves value 10 --> $DIR/E0507.rs:6:24 11 | 12LL | fn nothing_is_true(self) {} 13 | ^^^^ 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0507`.