Borderou de evaluare (job #3369362)
| Utilizator | Data | 20 octombrie 2026 00:23:38 | |
|---|---|---|---|
| Problema | Amici2 | Status | done |
| Runda | Arhiva de probleme | Compilator | rs | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
error[E0425]: cannot find function `size_of` in this scope
--> main.rs:185:31
|
185 | let mut buf = [0; size_of::<Self>()];
| ^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
4 + use core::mem::size_of;
|
4 + use std::mem::size_of;
|
error[E0700]: hidden type for `impl Iterator<Item = T>` captures lifetime that does not appear in bounds
--> main.rs:129:13
|
128 | pub fn read_line_of<T: ReadFromReader>(&mut self) -> impl Iterator<Item = T> {
| --------- ----------------------- opaque type defined here
| |
| hidden type `FromFn<{[email protected]:129:32: 129:34}>` captures the anonymous lifetime defined here
129 | / std::iter::from_fn(|| {
130 | | loop {
131 | | let &b = self.reader.fill_buf().ok()?.first()?;
132 | | if b.is_ascii_whitespace() {
... |
138 | | }
139 | | })
| |______________^
|
help: to declare that `impl Iterator<Item = T>` captures `'_`, you can add an explicit `'_` lifetime bound
|
128 | pub fn read_line_of<T: ReadFromReader>(&mut self) -> impl Iterator<Item = T> + '_ {
| ++++
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0425, E0700.
For more information about an error, try `rustc --explain E0425`.
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
