askama/testing/tests/ui/match-unit-structs.stderr
René Kijewski 50f50e3931 derive: a safe-guard to disable bindings a unit struct was expected
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.
2024-11-24 19:06:47 +01:00

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;
|