about summary refs log tree commit diff
path: root/src/test/ui/pub
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-02-13 16:27:59 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2022-07-01 17:39:19 +0200
commit42e4eee8931479a02c11c88ddaddb3a494e136c6 (patch)
treea1b3bade4e24fbe6bbcff84376aed94bc6505257 /src/test/ui/pub
parentca1e68b3229e710c3948a361ee770d846a88e6da (diff)
Shorten def_span for more items.
Diffstat (limited to 'src/test/ui/pub')
-rw-r--r--src/test/ui/pub/issue-33174-restricted-type-in-public-interface.stderr12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/pub/issue-33174-restricted-type-in-public-interface.stderr b/src/test/ui/pub/issue-33174-restricted-type-in-public-interface.stderr
index 29d45858ff1..39d4f5ac8d3 100644
--- a/src/test/ui/pub/issue-33174-restricted-type-in-public-interface.stderr
+++ b/src/test/ui/pub/issue-33174-restricted-type-in-public-interface.stderr
@@ -2,28 +2,28 @@ error[E0446]: private type `Snail` in public interface
   --> $DIR/issue-33174-restricted-type-in-public-interface.rs:18:1
    |
 LL | pub(crate) struct Snail;
-   | ------------------------ `Snail` declared as private
+   | ----------------------- `Snail` declared as private
 ...
 LL | pub type Helix_pomatia = Shell<Snail>;
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
+   | ^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
 
 error[E0446]: crate-private type `Turtle` in public interface
   --> $DIR/issue-33174-restricted-type-in-public-interface.rs:21:1
    |
 LL |     pub(super) struct Turtle;
-   |     ------------------------- `Turtle` declared as crate-private
+   |     ------------------------ `Turtle` declared as crate-private
 ...
 LL | pub type Dermochelys_coriacea = Shell<sea::Turtle>;
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type
 
 error[E0446]: private type `Tortoise` in public interface
   --> $DIR/issue-33174-restricted-type-in-public-interface.rs:24:1
    |
 LL | struct Tortoise;
-   | ---------------- `Tortoise` declared as private
+   | --------------- `Tortoise` declared as private
 ...
 LL | pub type Testudo_graeca = Shell<Tortoise>;
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
+   | ^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
 
 error: aborting due to 3 previous errors