summary refs log tree commit diff
path: root/tests/ui/generics
diff options
context:
space:
mode:
authoryukang <moorekang@gmail.com>2025-02-11 15:26:21 +0800
committeryukang <moorekang@gmail.com>2025-02-15 07:44:20 +0800
commit0aa2e6b606fdca2c0166b6033e3ea0cb8484eeb7 (patch)
tree6ed192cab064e2d9acaaefa9cb5431fc7fca6e87 /tests/ui/generics
parentd8810e3e2dab96778d20dd6d746ff95465515509 (diff)
downloadrust-0aa2e6b606fdca2c0166b6033e3ea0cb8484eeb7.tar.gz
rust-0aa2e6b606fdca2c0166b6033e3ea0cb8484eeb7.zip
Try to recover from path sep error in parser
Diffstat (limited to 'tests/ui/generics')
-rw-r--r--tests/ui/generics/single-colon-path-not-const-generics.stderr4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/generics/single-colon-path-not-const-generics.stderr b/tests/ui/generics/single-colon-path-not-const-generics.stderr
index 4e695b2dcd6..c14a5e62a0c 100644
--- a/tests/ui/generics/single-colon-path-not-const-generics.stderr
+++ b/tests/ui/generics/single-colon-path-not-const-generics.stderr
@@ -1,8 +1,6 @@
 error: path separator must be a double colon
   --> $DIR/single-colon-path-not-const-generics.rs:8:18
    |
-LL | pub struct Foo {
-   |            --- while parsing this struct
 LL |   a: Vec<foo::bar:A>,
    |                  ^
    |
@@ -10,7 +8,7 @@ LL |   a: Vec<foo::bar:A>,
 help: use a double colon instead
    |
 LL |   a: Vec<foo::bar::A>,
-   |                  +
+   |                   +
 
 error: aborting due to 1 previous error