mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 14:57:01 +00:00
a whole bunch of tests for the method macros
This commit is contained in:
parent
4bf0bd7b09
commit
e05f9bb963
23 changed files with 473 additions and 28 deletions
13
tests/ui/method_too_few_args.stderr
Normal file
13
tests/ui/method_too_few_args.stderr
Normal file
|
@ -0,0 +1,13 @@
|
|||
error: Too few arguments
|
||||
--> $DIR/method_too_few_args.rs:8:4
|
||||
|
|
||||
8 | fn read()
|
||||
| ^^^^
|
||||
|
||||
error[E0433]: failed to resolve: use of undeclared type or module `_gotham_restful_resource_foo_resource_method_read`
|
||||
--> $DIR/method_too_few_args.rs:3:10
|
||||
|
|
||||
3 | #[derive(Resource)]
|
||||
| ^^^^^^^^ use of undeclared type or module `_gotham_restful_resource_foo_resource_method_read`
|
||||
|
|
||||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
Loading…
Add table
Add a link
Reference in a new issue