mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-06-06 13:50:44 +00:00
merge workspace and main crate
This commit is contained in:
parent
52679ad29d
commit
5587ded60d
45 changed files with 58 additions and 67 deletions
12
tests/ui/from_body_enum.rs
Normal file
12
tests/ui/from_body_enum.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
#[macro_use] extern crate gotham_restful;
|
||||
|
||||
#[derive(FromBody)]
|
||||
enum FromBodyEnum
|
||||
{
|
||||
SomeVariant(Vec<u8>),
|
||||
OtherVariant(String)
|
||||
}
|
||||
|
||||
fn main()
|
||||
{
|
||||
}
|
5
tests/ui/from_body_enum.stderr
Normal file
5
tests/ui/from_body_enum.stderr
Normal file
|
@ -0,0 +1,5 @@
|
|||
error: #[derive(FromBody)] only works for structs
|
||||
--> $DIR/from_body_enum.rs:4:1
|
||||
|
|
||||
4 | enum FromBodyEnum
|
||||
| ^^^^
|
Loading…
Add table
Add a link
Reference in a new issue