2017-12-02 19:15:03 +00:00
|
|
|
error: missing `for` in a trait impl
|
2020-01-08 18:25:42 +00:00
|
|
|
--> $DIR/impl-parsing.rs:4:11
|
2017-12-02 19:15:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | impl Trait Type {}
|
2019-01-12 04:05:31 +00:00
|
|
|
| ^ help: add `for` here
|
2017-12-02 19:15:03 +00:00
|
|
|
|
|
|
|
error: missing `for` in a trait impl
|
2020-01-08 18:25:42 +00:00
|
|
|
--> $DIR/impl-parsing.rs:5:11
|
2017-12-02 19:15:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | impl Trait .. {}
|
2019-01-12 04:05:31 +00:00
|
|
|
| ^ help: add `for` here
|
2017-12-02 19:15:03 +00:00
|
|
|
|
|
|
|
error: expected a trait, found type
|
2020-01-08 18:25:42 +00:00
|
|
|
--> $DIR/impl-parsing.rs:6:6
|
2017-12-02 19:15:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | impl ?Sized for Type {}
|
2017-12-02 19:15:03 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: expected a trait, found type
|
2020-01-08 18:25:42 +00:00
|
|
|
--> $DIR/impl-parsing.rs:7:6
|
2017-12-02 19:15:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | impl ?Sized for .. {}
|
2017-12-02 19:15:03 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
2020-02-23 11:54:00 +00:00
|
|
|
error: `default` is not followed by an item
|
2020-02-22 03:53:02 +00:00
|
|
|
--> $DIR/impl-parsing.rs:9:1
|
2017-12-02 19:15:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | default unsafe FAIL
|
2020-02-23 03:49:26 +00:00
|
|
|
| ^^^^^^^ the `default` qualifier
|
|
|
|
|
|
|
|
|
= note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
|
2017-12-02 19:15:03 +00:00
|
|
|
|
2020-02-22 03:53:02 +00:00
|
|
|
error: expected item, found keyword `unsafe`
|
|
|
|
--> $DIR/impl-parsing.rs:9:9
|
|
|
|
|
|
|
|
|
LL | default unsafe FAIL
|
|
|
|
| ^^^^^^ expected item
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2017-12-02 19:15:03 +00:00
|
|
|
|