1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/borrowck-move-error-with-note.rs:21:11
4 LL | match *f { //~ ERROR cannot move out of
7 | cannot move out of borrowed content
8 | help: consider removing the `*`: `f`
9 LL | //~| cannot move out
11 | ---- data moved here
14 LL | Foo::Foo2(num) => (),
17 note: move occurs because these variables have types that don't implement the `Copy` trait
18 --> $DIR/borrowck-move-error-with-note.rs:23:19
24 LL | Foo::Foo2(num) => (),
27 error[E0509]: cannot move out of type `S`, which implements the `Drop` trait
28 --> $DIR/borrowck-move-error-with-note.rs:39:11
30 LL | match (S {f: "foo".to_string(), g: "bar".to_string()}) {
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of here
38 note: move occurs because these variables have types that don't implement the `Copy` trait
39 --> $DIR/borrowck-move-error-with-note.rs:42:16
46 error[E0507]: cannot move out of borrowed content
47 --> $DIR/borrowck-move-error-with-note.rs:57:11
49 LL | match a.a { //~ ERROR cannot move out of
52 | cannot move out of borrowed content
53 | help: consider borrowing here: `&a.a`
54 LL | //~| cannot move out
58 note: move occurs because `n` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
59 --> $DIR/borrowck-move-error-with-note.rs:59:9
64 error: aborting due to 3 previous errors
66 Some errors occurred: E0507, E0509.
67 For more information about an error, try `rustc --explain E0507`.