@@ -24,42 +24,6 @@ LL | num2) => (),
24
24
LL | Foo::Foo2(num) => (),
25
25
| ^^^
26
26
27
- error[E0507]: cannot move out of `f.0` which is behind a `&` reference
28
- --> $DIR/borrowck-move-error-with-note.rs:23:19
29
- |
30
- LL | let f = &Foo::Foo1(box 1, box 2);
31
- | ------------------------ help: consider changing this to be a mutable reference: `&mut Foo::Foo1(box 1, box 2)`
32
- ...
33
- LL | Foo::Foo1(num1,
34
- | ^^^^
35
- | |
36
- | cannot move out of `f.0` which is behind a `&` reference
37
- | `f` is a `&` reference, so the data it refers to cannot be moved
38
-
39
- error[E0507]: cannot move out of `f.1` which is behind a `&` reference
40
- --> $DIR/borrowck-move-error-with-note.rs:24:19
41
- |
42
- LL | let f = &Foo::Foo1(box 1, box 2);
43
- | ------------------------ help: consider changing this to be a mutable reference: `&mut Foo::Foo1(box 1, box 2)`
44
- ...
45
- LL | num2) => (),
46
- | ^^^^
47
- | |
48
- | cannot move out of `f.1` which is behind a `&` reference
49
- | `f` is a `&` reference, so the data it refers to cannot be moved
50
-
51
- error[E0507]: cannot move out of `f.0` which is behind a `&` reference
52
- --> $DIR/borrowck-move-error-with-note.rs:25:19
53
- |
54
- LL | let f = &Foo::Foo1(box 1, box 2);
55
- | ------------------------ help: consider changing this to be a mutable reference: `&mut Foo::Foo1(box 1, box 2)`
56
- ...
57
- LL | Foo::Foo2(num) => (),
58
- | ^^^
59
- | |
60
- | cannot move out of `f.0` which is behind a `&` reference
61
- | `f` is a `&` reference, so the data it refers to cannot be moved
62
-
63
27
error[E0509]: cannot move out of type `S`, which implements the `Drop` trait
64
28
--> $DIR/borrowck-move-error-with-note.rs:39:11
65
29
|
@@ -97,19 +61,7 @@ note: move occurs because `n` has type `std::boxed::Box<isize>`, which does not
97
61
LL | n => {
98
62
| ^
99
63
100
- error[E0507]: cannot move out of `a.a` which is behind a `&` reference
101
- --> $DIR/borrowck-move-error-with-note.rs:59:9
102
- |
103
- LL | let a = &A { a: box 1 };
104
- | --------------- help: consider changing this to be a mutable reference: `&mut A { a: box 1 }`
105
- ...
106
- LL | n => {
107
- | ^
108
- | |
109
- | cannot move out of `a.a` which is behind a `&` reference
110
- | `a` is a `&` reference, so the data it refers to cannot be moved
111
-
112
- error: aborting due to 7 previous errors
64
+ error: aborting due to 3 previous errors
113
65
114
66
Some errors occurred: E0507, E0509.
115
67
For more information about an error, try `rustc --explain E0507`.
0 commit comments