error: Invalid scope 'not_a_scope'. Valid scopes: vcl_recv, vcl_pipe, vcl_pass, vcl_hash, vcl_purge, vcl_miss, vcl_hit, vcl_deliver, vcl_synth, vcl_backend_fetch, vcl_backend_refresh, vcl_backend_response, vcl_backend_error, vcl_init, vcl_fini, client, backend, housekeeping
--> tests/fail/error_restrict.rs:3:26
|
3 | #[restrict(vcl_recv, not_a_scope)]
| ^^^^^^^^^^^
error: #[restrict] requires at least one scope argument
--> tests/fail/error_restrict.rs:11:5
|
11 | #[restrict()]
| ^
error: #[restrict] is not allowed on event functions
--> tests/fail/error_restrict.rs:23:9
|
23 | pub fn on_event(event: Event) {}
| ^^
error: #[restrict] is not allowed on constructors
--> tests/fail/error_restrict.rs:34:13
|
34 | pub fn new() -> Self {
| ^^
error: Object must have a constructor (a public method returning `Self` or `Result<Self, _>`)
--> tests/fail/error_restrict.rs:32:10
|
32 | impl Obj {
| ^^^