1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 06:54:46 +00:00

get rid of mod's in error messages

This commit is contained in:
Dominic 2020-11-23 01:22:03 +01:00
parent f9c2009023
commit 4fd5464e44
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
8 changed files with 91 additions and 127 deletions

View file

@ -4,10 +4,10 @@ error: Didn't expect self parameter
8 | fn read_all(self)
| ^^^^
error[E0433]: failed to resolve: use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
--> $DIR/method_self.rs:3:10
error: `self` parameter is only allowed in associated functions
--> $DIR/method_self.rs:8:13
|
3 | #[derive(Resource)]
| ^^^^^^^^ use of undeclared crate or module `_gotham_restful_resource_foo_resource_method_read_all`
8 | fn read_all(self)
| ^^^^ not semantically valid as function parameter
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: associated functions are those in `impl` or `trait` definitions