diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-03-07 15:20:14 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-03-27 11:18:43 +0100 |
| commit | 123ea25542ba00e92bf6d19084cad6e7a24453f0 (patch) | |
| tree | 1c28cb09189c8abc45e7e934a15f85e59175f43d /tests/rustdoc-ui/doctest/display-output.stdout | |
| parent | 6f7e8d441a81ed89e14ad5ce53dcbe52ab0af64c (diff) | |
| download | rust-123ea25542ba00e92bf6d19084cad6e7a24453f0.tar.gz rust-123ea25542ba00e92bf6d19084cad6e7a24453f0.zip | |
Correctly handle line comments in attributes and generate extern crates
outside of wrapping function
Diffstat (limited to 'tests/rustdoc-ui/doctest/display-output.stdout')
| -rw-r--r-- | tests/rustdoc-ui/doctest/display-output.stdout | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc-ui/doctest/display-output.stdout b/tests/rustdoc-ui/doctest/display-output.stdout index ad25d1ce541..45e107b2c70 100644 --- a/tests/rustdoc-ui/doctest/display-output.stdout +++ b/tests/rustdoc-ui/doctest/display-output.stdout @@ -6,7 +6,7 @@ successes: ---- $DIR/display-output.rs - foo (line 9) stdout ---- warning: unused variable: `x` - --> $DIR/display-output.rs:11:5 + --> $DIR/display-output.rs:12:5 | LL | let x = 12; | ^ help: if this is intentional, prefix it with an underscore: `_x` @@ -19,13 +19,13 @@ LL | #![warn(unused)] = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` warning: unused variable: `x` - --> $DIR/display-output.rs:13:8 + --> $DIR/display-output.rs:14:8 | LL | fn foo(x: &dyn std::fmt::Display) {} | ^ help: if this is intentional, prefix it with an underscore: `_x` warning: function `foo` is never used - --> $DIR/display-output.rs:13:4 + --> $DIR/display-output.rs:14:4 | LL | fn foo(x: &dyn std::fmt::Display) {} | ^^^ |
