fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0381]: assign to part of possibly-uninitialized variable: `s` 2 --> $DIR/issue-21232-partial-init-and-use.rs:97:5 3 | 4LL | s.x = 10; s.y = Box::new(20); 5 | ^^^^^^^^ use of possibly-uninitialized `s` 6 7error[E0381]: assign to part of possibly-uninitialized variable: `t` 8 --> $DIR/issue-21232-partial-init-and-use.rs:104:5 9 | 10LL | t.0 = 10; t.1 = Box::new(20); 11 | ^^^^^^^^ use of possibly-uninitialized `t` 12 13error[E0382]: assign to part of moved value: `s` 14 --> $DIR/issue-21232-partial-init-and-use.rs:111:5 15 | 16LL | let mut s: S<B> = S::new(); drop(s); 17 | ----- - value moved here 18 | | 19 | move occurs because `s` has type `S<std::boxed::Box<u32>>`, which does not implement the `Copy` trait 20LL | s.x = 10; s.y = Box::new(20); 21 | ^^^^^^^^ value partially assigned here after move 22 23error[E0382]: assign to part of moved value: `t` 24 --> $DIR/issue-21232-partial-init-and-use.rs:118:5 25 | 26LL | let mut t: T = (0, Box::new(0)); drop(t); 27 | ----- - value moved here 28 | | 29 | move occurs because `t` has type `(u32, std::boxed::Box<u32>)`, which does not implement the `Copy` trait 30LL | t.0 = 10; t.1 = Box::new(20); 31 | ^^^^^^^^ value partially assigned here after move 32 33error[E0381]: assign to part of possibly-uninitialized variable: `s` 34 --> $DIR/issue-21232-partial-init-and-use.rs:125:5 35 | 36LL | s.x = 10; 37 | ^^^^^^^^ use of possibly-uninitialized `s` 38 39error[E0381]: assign to part of possibly-uninitialized variable: `t` 40 --> $DIR/issue-21232-partial-init-and-use.rs:132:5 41 | 42LL | t.0 = 10; 43 | ^^^^^^^^ use of possibly-uninitialized `t` 44 45error[E0382]: assign to part of moved value: `s` 46 --> $DIR/issue-21232-partial-init-and-use.rs:139:5 47 | 48LL | let mut s: S<B> = S::new(); drop(s); 49 | ----- - value moved here 50 | | 51 | move occurs because `s` has type `S<std::boxed::Box<u32>>`, which does not implement the `Copy` trait 52LL | s.x = 10; 53 | ^^^^^^^^ value partially assigned here after move 54 55error[E0382]: assign to part of moved value: `t` 56 --> $DIR/issue-21232-partial-init-and-use.rs:146:5 57 | 58LL | let mut t: T = (0, Box::new(0)); drop(t); 59 | ----- - value moved here 60 | | 61 | move occurs because `t` has type `(u32, std::boxed::Box<u32>)`, which does not implement the `Copy` trait 62LL | t.0 = 10; 63 | ^^^^^^^^ value partially assigned here after move 64 65error[E0381]: assign to part of possibly-uninitialized variable: `s` 66 --> $DIR/issue-21232-partial-init-and-use.rs:153:5 67 | 68LL | s.x = 10; 69 | ^^^^^^^^ use of possibly-uninitialized `s` 70 71error[E0381]: assign to part of possibly-uninitialized variable: `t` 72 --> $DIR/issue-21232-partial-init-and-use.rs:160:5 73 | 74LL | t.0 = 10; 75 | ^^^^^^^^ use of possibly-uninitialized `t` 76 77error[E0381]: assign to part of possibly-uninitialized variable: `q` 78 --> $DIR/issue-21232-partial-init-and-use.rs:176:5 79 | 80LL | q.r.f.x = 10; q.r.f.y = Box::new(20); 81 | ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f` 82 83error[E0381]: assign to part of possibly-uninitialized variable: `q` 84 --> $DIR/issue-21232-partial-init-and-use.rs:183:5 85 | 86LL | q.r.f.0 = 10; q.r.f.1 = Box::new(20); 87 | ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f` 88 89error[E0382]: assign to part of moved value: `q.r` 90 --> $DIR/issue-21232-partial-init-and-use.rs:190:5 91 | 92LL | let mut q: Q<S<B>> = Q::new(S::new()); drop(q.r); 93 | --- value moved here 94LL | q.r.f.x = 10; q.r.f.y = Box::new(20); 95 | ^^^^^^^^^^^^ value partially assigned here after move 96 | 97 = note: move occurs because `q.r` has type `R<S<std::boxed::Box<u32>>>`, which does not implement the `Copy` trait 98 99error[E0382]: assign to part of moved value: `q.r` 100 --> $DIR/issue-21232-partial-init-and-use.rs:197:5 101 | 102LL | let mut q: Q<T> = Q::new((0, Box::new(0))); drop(q.r); 103 | --- value moved here 104LL | q.r.f.0 = 10; q.r.f.1 = Box::new(20); 105 | ^^^^^^^^^^^^ value partially assigned here after move 106 | 107 = note: move occurs because `q.r` has type `R<(u32, std::boxed::Box<u32>)>`, which does not implement the `Copy` trait 108 109error[E0381]: assign to part of possibly-uninitialized variable: `q` 110 --> $DIR/issue-21232-partial-init-and-use.rs:204:5 111 | 112LL | q.r.f.x = 10; 113 | ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f` 114 115error[E0381]: assign to part of possibly-uninitialized variable: `q` 116 --> $DIR/issue-21232-partial-init-and-use.rs:211:5 117 | 118LL | q.r.f.0 = 10; 119 | ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f` 120 121error[E0382]: assign to part of moved value: `q.r` 122 --> $DIR/issue-21232-partial-init-and-use.rs:218:5 123 | 124LL | let mut q: Q<S<B>> = Q::new(S::new()); drop(q.r); 125 | --- value moved here 126LL | q.r.f.x = 10; 127 | ^^^^^^^^^^^^ value partially assigned here after move 128 | 129 = note: move occurs because `q.r` has type `R<S<std::boxed::Box<u32>>>`, which does not implement the `Copy` trait 130 131error[E0382]: assign to part of moved value: `q.r` 132 --> $DIR/issue-21232-partial-init-and-use.rs:225:5 133 | 134LL | let mut q: Q<T> = Q::new((0, Box::new(0))); drop(q.r); 135 | --- value moved here 136LL | q.r.f.0 = 10; 137 | ^^^^^^^^^^^^ value partially assigned here after move 138 | 139 = note: move occurs because `q.r` has type `R<(u32, std::boxed::Box<u32>)>`, which does not implement the `Copy` trait 140 141error[E0381]: assign to part of possibly-uninitialized variable: `q` 142 --> $DIR/issue-21232-partial-init-and-use.rs:232:5 143 | 144LL | q.r.f.x = 10; 145 | ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f` 146 147error[E0381]: assign to part of possibly-uninitialized variable: `q` 148 --> $DIR/issue-21232-partial-init-and-use.rs:239:5 149 | 150LL | q.r.f.0 = 10; 151 | ^^^^^^^^^^^^ use of possibly-uninitialized `q.r.f` 152 153error[E0382]: assign to part of moved value: `c` 154 --> $DIR/issue-21232-partial-init-and-use.rs:257:13 155 | 156LL | let mut c = (1, "".to_owned()); 157 | ----- move occurs because `c` has type `(i32, std::string::String)`, which does not implement the `Copy` trait 158LL | match c { 159LL | c2 => { 160 | -- value moved here 161LL | c.0 = 2; 162 | ^^^^^^^ value partially assigned here after move 163 164error[E0382]: assign to part of moved value: `c` 165 --> $DIR/issue-21232-partial-init-and-use.rs:267:13 166 | 167LL | let mut c = (1, (1, "".to_owned())); 168 | ----- move occurs because `c` has type `(i32, (i32, std::string::String))`, which does not implement the `Copy` trait 169LL | match c { 170LL | c2 => { 171 | -- value moved here 172LL | (c.1).0 = 2; 173 | ^^^^^^^^^^^ value partially assigned here after move 174 175error[E0382]: assign to part of moved value: `c.1` 176 --> $DIR/issue-21232-partial-init-and-use.rs:275:13 177 | 178LL | c2 => { 179 | -- value moved here 180LL | ((c.1).1).0 = 3; 181 | ^^^^^^^^^^^^^^^ value partially assigned here after move 182 | 183 = note: move occurs because `c.1` has type `(i32, (i32, std::string::String))`, which does not implement the `Copy` trait 184 185error: aborting due to 23 previous errors 186 187Some errors have detailed explanations: E0381, E0382. 188For more information about an error, try `rustc --explain E0381`.