[Bug]: Doc-tests failed in `raw_curp/log.rs`
Closed this issue · 1 comments
lxl66566 commented
Description about the bug
reproduce: cargo test -p curp --doc
Version
0.6.1 (Default)
Relevant log output
running 1 test
test crates/curp/src/server/raw_curp/log.rs - server::raw_curp::log::Log (line 86) ... FAILED
failures:
---- crates/curp/src/server/raw_curp/log.rs - server::raw_curp::log::Log (line 86) stdout ----
error: unknown start of token: \u{2191}
--> crates/curp/src/server/raw_curp/log.rs:87:1
|
3 | ↑
| ^
error: unknown start of token: `
--> crates/curp/src/server/raw_curp/log.rs:88:19
|
4 | `first_idx_in_cur_batch`
| ^
|
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
|
4 | 'first_idx_in_cur_batch`
| ~
error: unknown start of token: `
--> crates/curp/src/server/raw_curp/log.rs:88:42
|
4 | `first_idx_in_cur_batch`
| ^
|
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
|
4 | `first_idx_in_cur_batch'
| ~
error[E0425]: cannot find value `first_idx_in_cur_batch` in this scope
--> crates/curp/src/server/raw_curp/log.rs:88:20
|
4 | `first_idx_in_cur_batch`
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
failures:
crates/curp/src/server/raw_curp/log.rs - server::raw_curp::log::Log (line 86)
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s
error: doctest failed, to rerun pass `-p curp --doc`
Code of Conduct
- I agree to follow this project's Code of Conduct
github-actions commented
👋 Thanks for opening this issue!
Reply with the following command on its own line to get help or engage:
/contributing-agreement
: to print Contributing Agreements./assignme
: to assign this issue to you.