2017-12-02 22:15:03 +03:00
|
|
|
error: missing `for` in a trait impl
|
2020-01-08 21:25:42 +03:00
|
|
|
--> $DIR/impl-parsing.rs:4:11
|
2017-12-02 22:15:03 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | impl Trait Type {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
help: add `for` here
|
|
|
|
|
|
|
|
|
LL | impl Trait for Type {}
|
|
|
|
| +++
|
2017-12-02 22:15:03 +03:00
|
|
|
|
|
|
|
error: expected a trait, found type
|
2025-04-09 14:16:22 +10:00
|
|
|
--> $DIR/impl-parsing.rs:5:6
|
2017-12-02 22:15:03 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | impl ?Sized for Type {}
|
2017-12-02 22:15:03 +03:00
|
|
|
| ^^^^^^
|
|
|
|
|
2025-04-09 14:16:22 +10:00
|
|
|
error: aborting due to 2 previous errors
|
2017-12-02 22:15:03 +03:00
|
|
|
|