mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-03 16:22:37 +00:00
f171dc9d09
The directory structure has changed to better isolate crates serving core and contrib. The new directory structure is: contrib/ lib/ - the contrib library core/ lib/ - the core Rocket library codegen/ - the "compile extension" codegen library codegen_next/ - the new proc-macro library examples/ - unchanged scripts/ - unchanged site/ - unchanged This commit also removes the following files: appveyor.yml - AppVeyor (Rust on Windows) is far too spotty for use rustfmt.toml - rustfmt is, unfortunately, not mature enough for use Finally, all example Cargo crates were marked with 'publish = false'.
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
error: 'FIX' is not a valid method
|
|
--> $DIR/route-bad-method.rs:6:9
|
|
|
|
|
6 | #[route(FIX, "/hello")]
|
|
| ^^^
|
|
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
|
|
|
error: expected a valid HTTP method identifier
|
|
--> $DIR/route-bad-method.rs:9:9
|
|
|
|
|
9 | #[route("hi", "/hello")]
|
|
| ^^^^
|
|
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
|
|
|
error: expected a valid HTTP method identifier
|
|
--> $DIR/route-bad-method.rs:12:9
|
|
|
|
|
12 | #[route("GET", "/hello")]
|
|
| ^^^^^
|
|
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
|
|
|
error: expected a valid HTTP method identifier
|
|
--> $DIR/route-bad-method.rs:15:9
|
|
|
|
|
15 | #[route(120, "/hello")]
|
|
| ^^^
|
|
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
|
|
|
error: 'CONNECT' is not a valid method
|
|
--> $DIR/route-bad-method.rs:18:9
|
|
|
|
|
18 | #[route(CONNECT, "/hello")]
|
|
| ^^^^^^^
|
|
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
|
|
|
error: aborting due to 5 previous errors
|
|
|