@@ -39,22 +39,24 @@ error: expected identifier, found keyword `Self`
3939 --> $DIR/self_type_keyword.rs:22:15
4040 |
4141LL | Foo { Self } => (),
42- | ^^^^ expected identifier, found keyword
42+ | --- ^^^^ expected identifier, found keyword
43+ | |
44+ | while parsing the fields for this pattern
4345
4446error: expected identifier, found keyword `Self`
45- --> $DIR/self_type_keyword.rs:30 :26
47+ --> $DIR/self_type_keyword.rs:29 :26
4648 |
4749LL | extern crate core as Self;
4850 | ^^^^ expected identifier, found keyword
4951
5052error: expected identifier, found keyword `Self`
51- --> $DIR/self_type_keyword.rs:35 :32
53+ --> $DIR/self_type_keyword.rs:34 :32
5254 |
5355LL | use std::option::Option as Self;
5456 | ^^^^ expected identifier, found keyword
5557
5658error: expected identifier, found keyword `Self`
57- --> $DIR/self_type_keyword.rs:40 :11
59+ --> $DIR/self_type_keyword.rs:39 :11
5860 |
5961LL | trait Self {}
6062 | ^^^^ expected identifier, found keyword
@@ -88,13 +90,7 @@ LL | match 15 {
8890LL | Foo { Self } => (),
8991 | ^^^^^^^^^^^^ expected integer, found `Foo`
9092
91- error[E0026]: struct `Foo` does not have a field named `Self`
92- --> $DIR/self_type_keyword.rs:22:15
93- |
94- LL | Foo { Self } => (),
95- | ^^^^ struct `Foo` does not have this field
96-
97- error: aborting due to 13 previous errors
93+ error: aborting due to 12 previous errors
9894
99- Some errors have detailed explanations: E0026, E0308, E0392, E0531.
100- For more information about an error, try `rustc --explain E0026 `.
95+ Some errors have detailed explanations: E0308, E0392, E0531.
96+ For more information about an error, try `rustc --explain E0308 `.
0 commit comments