fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
640 B17 linesraw
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`.