1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 14:57:01 +00:00

add trybuild tests for OpenapiType and Resource derive macros

This commit is contained in:
Dominic 2020-05-09 15:29:29 +02:00
parent 9ed24c9bcb
commit 6680887b84
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
16 changed files with 149 additions and 3 deletions

View file

@ -0,0 +1,14 @@
error: Unknown method: `read_any'
--> $DIR/resource_unknown_method.rs:4:12
|
4 | #[resource(read_any)]
| ^^^^^^^^
error[E0277]: the trait bound `FooResource: gotham_restful::Resource` is not satisfied
--> $DIR/resource_unknown_method.rs:7:1
|
7 | #[read_all(FooResource)]
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `gotham_restful::Resource` is not implemented for `FooResource`
|
= help: see issue #48214
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)