diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-03-28 10:35:53 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-03-28 10:35:53 +0100 |
| commit | 87d524bef68b6a63f965cec81e0ce28e00843907 (patch) | |
| tree | 6eef5b5849048d18bd22f80bb74f17f0cf3abd98 /tests/coverage-run-rustdoc | |
| parent | 5d274408d4b8b845f490912dcdadcc717f18fcca (diff) | |
| download | rust-87d524bef68b6a63f965cec81e0ce28e00843907.tar.gz rust-87d524bef68b6a63f965cec81e0ce28e00843907.zip | |
Update `coverage-run-rustdoc` output
Diffstat (limited to 'tests/coverage-run-rustdoc')
| -rw-r--r-- | tests/coverage-run-rustdoc/doctest.coverage | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/coverage-run-rustdoc/doctest.coverage b/tests/coverage-run-rustdoc/doctest.coverage index f007eb0cade..0fa94361c47 100644 --- a/tests/coverage-run-rustdoc/doctest.coverage +++ b/tests/coverage-run-rustdoc/doctest.coverage @@ -58,21 +58,21 @@ $DIR/doctest.rs: LL| |//! LL| |//! doctest with custom main: LL| |//! ``` - LL| 1|//! fn some_func() { - LL| 1|//! println!("called some_func()"); - LL| 1|//! } - LL| |//! - LL| |//! #[derive(Debug)] - LL| |//! struct SomeError; + LL| |//! fn some_func() { + LL| |//! println!("called some_func()"); + LL| |//! } + LL| 1|//! + LL| 1|//! #[derive(Debug)] + LL| 1|//! struct SomeError; LL| |//! LL| |//! extern crate doctest_crate; LL| |//! - LL| 1|//! fn doctest_main() -> Result<(), SomeError> { + LL| |//! fn doctest_main() -> Result<(), SomeError> { LL| 1|//! some_func(); LL| 1|//! doctest_crate::fn_run_in_doctests(2); LL| 1|//! Ok(()) LL| 1|//! } - LL| |//! + LL| 1|//! LL| |//! // this `main` is not shown as covered, as it clashes with all the other LL| |//! // `main` functions that were automatically generated for doctests LL| |//! fn main() -> Result<(), SomeError> { |
