mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-30 14:31:36 +00:00

This does not fix the error, as rinja is not able to tell was the actually intended to do, but rust gives you a guide what the error is, and the error is not silently ignored.
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
error[E0422]: cannot find struct, variant or union type `Hello` in this scope
|
|
--> tests/ui/match-unit-structs.rs:9:10
|
|
|
|
|
9 | #[derive(Template)]
|
|
| ^^^^^^^^ not found in this scope
|
|
|
|
|
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
help: consider importing this variant
|
|
|
|
|
1 + use crate::Greeting::Hello;
|
|
|
|
|
|
|
error[E0422]: cannot find struct, variant or union type `Hey` in this scope
|
|
--> tests/ui/match-unit-structs.rs:9:10
|
|
|
|
|
9 | #[derive(Template)]
|
|
| ^^^^^^^^ not found in this scope
|
|
|
|
|
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
help: consider importing this variant
|
|
|
|
|
1 + use crate::Greeting::Hey;
|
|
|
|
|
|
|
error[E0422]: cannot find struct, variant or union type `Hi` in this scope
|
|
--> tests/ui/match-unit-structs.rs:9:10
|
|
|
|
|
9 | #[derive(Template)]
|
|
| ^^^^^^^^ not found in this scope
|
|
|
|
|
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
help: consider importing this variant
|
|
|
|
|
1 + use crate::Greeting::Hi;
|
|
|
|