2017-12-02 13:15:03 -06:00
|
|
|
error: missing `for` in a trait impl
|
2020-01-08 12:25:42 -06:00
|
|
|
--> $DIR/impl-parsing.rs:4:11
|
2017-12-02 13:15:03 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | impl Trait Type {}
|
2019-01-11 22:05:31 -06:00
|
|
|
| ^ help: add `for` here
|
2017-12-02 13:15:03 -06:00
|
|
|
|
|
|
|
error: missing `for` in a trait impl
|
2020-01-08 12:25:42 -06:00
|
|
|
--> $DIR/impl-parsing.rs:5:11
|
2017-12-02 13:15:03 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | impl Trait .. {}
|
2019-01-11 22:05:31 -06:00
|
|
|
| ^ help: add `for` here
|
2017-12-02 13:15:03 -06:00
|
|
|
|
|
|
|
error: expected a trait, found type
|
2020-01-08 12:25:42 -06:00
|
|
|
--> $DIR/impl-parsing.rs:6:6
|
2017-12-02 13:15:03 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | impl ?Sized for Type {}
|
2017-12-02 13:15:03 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: expected a trait, found type
|
2020-01-08 12:25:42 -06:00
|
|
|
--> $DIR/impl-parsing.rs:7:6
|
2017-12-02 13:15:03 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | impl ?Sized for .. {}
|
2017-12-02 13:15:03 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
2020-02-23 05:54:00 -06:00
|
|
|
error: `default` is not followed by an item
|
2020-02-21 21:53:02 -06:00
|
|
|
--> $DIR/impl-parsing.rs:9:1
|
2017-12-02 13:15:03 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | default unsafe FAIL
|
2020-02-22 21:49:26 -06:00
|
|
|
| ^^^^^^^ the `default` qualifier
|
|
|
|
|
|
|
|
|
= note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
|
2017-12-02 13:15:03 -06:00
|
|
|
|
2020-02-21 21:53:02 -06:00
|
|
|
error: expected item, found keyword `unsafe`
|
|
|
|
--> $DIR/impl-parsing.rs:9:9
|
|
|
|
|
|
|
|
|
LL | default unsafe FAIL
|
|
|
|
| ^^^^^^ expected item
|
2023-09-05 22:35:07 -05:00
|
|
|
|
|
|
|
|
= note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
|
2020-02-21 21:53:02 -06:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2017-12-02 13:15:03 -06:00
|
|
|
|