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:
parent
9ed24c9bcb
commit
6680887b84
16 changed files with 149 additions and 3 deletions
14
tests/ui/resource_unknown_method.stderr
Normal file
14
tests/ui/resource_unknown_method.stderr
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue