mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 06:25:37 +00:00
Go over all structured parser suggestions and make them verbose style. When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
37 lines
974 B
Plaintext
37 lines
974 B
Plaintext
error: unexpected `impl` keyword
|
|
--> $DIR/extra-impl-in-trait-impl.rs:8:18
|
|
|
|
|
LL | impl<T: Default> impl Default for S<T> {
|
|
| ^^^^^
|
|
|
|
|
note: this is parsed as an `impl Trait` type, but a trait is expected at this position
|
|
--> $DIR/extra-impl-in-trait-impl.rs:8:18
|
|
|
|
|
LL | impl<T: Default> impl Default for S<T> {
|
|
| ^^^^^^^^^^^^
|
|
help: remove the extra `impl`
|
|
|
|
|
LL - impl<T: Default> impl Default for S<T> {
|
|
LL + impl<T: Default> Default for S<T> {
|
|
|
|
|
|
|
error: unexpected `impl` keyword
|
|
--> $DIR/extra-impl-in-trait-impl.rs:14:6
|
|
|
|
|
LL | impl impl Default for S2 {
|
|
| ^^^^^
|
|
|
|
|
note: this is parsed as an `impl Trait` type, but a trait is expected at this position
|
|
--> $DIR/extra-impl-in-trait-impl.rs:14:6
|
|
|
|
|
LL | impl impl Default for S2 {
|
|
| ^^^^^^^^^^^^
|
|
help: remove the extra `impl`
|
|
|
|
|
LL - impl impl Default for S2 {
|
|
LL + impl Default for S2 {
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|