Borderou de evaluare (job #2640586)
Utilizator | Data | 6 august 2020 23:24:16 | |
---|---|---|---|
Problema | Secv8 | Status | done |
Runda | Arhiva de probleme | Compilator | rs | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
error[E0382]: use of moved value: `t`
--> main.rs:166:23
|
165 | collection = Treap::collect(t.left, collection);
| ------ value moved here
166 | collection.push(t.key);
| ^^^^^ value used here after move
|
= note: move occurs because `t.left` has type `std::option::Option<std::boxed::Box<Treap>>`, which does not implement the `Copy` trait
error[E0382]: use of moved value: `t`
--> main.rs:167:35
|
165 | collection = Treap::collect(t.left, collection);
| ------ value moved here
166 | collection.push(t.key);
167 | collection = Treap::collect(t.right, collection);
| ^^^^^^^ value used here after move
|
= note: move occurs because `t.left` has type `std::option::Option<std::boxed::Box<Treap>>`, which does not implement the `Copy` trait
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0382`.
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !