rust/src/test/ui/parser/impl-parsing.stderr

39 lines
817 B
Text
Raw Normal View History

error: missing `for` in a trait impl
2020-01-08 21:25:42 +03:00
--> $DIR/impl-parsing.rs:4:11
|
2019-03-09 15:03:44 +03:00
LL | impl Trait Type {}
| ^ help: add `for` here
error: missing `for` in a trait impl
2020-01-08 21:25:42 +03:00
--> $DIR/impl-parsing.rs:5:11
|
2019-03-09 15:03:44 +03:00
LL | impl Trait .. {}
| ^ help: add `for` here
error: expected a trait, found type
2020-01-08 21:25:42 +03:00
--> $DIR/impl-parsing.rs:6:6
|
2019-03-09 15:03:44 +03:00
LL | impl ?Sized for Type {}
| ^^^^^^
error: expected a trait, found type
2020-01-08 21:25:42 +03:00
--> $DIR/impl-parsing.rs:7:6
|
2019-03-09 15:03:44 +03:00
LL | impl ?Sized for .. {}
| ^^^^^^
error: unmatched `default`
--> $DIR/impl-parsing.rs:9:1
|
2019-03-09 15:03:44 +03:00
LL | default unsafe FAIL
| ^^^^^^^ the unmatched `default`
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