You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|
= note: #[warn(unreachable_code)] on by default
= note: this error originates in a macro outside of the current crate
error: code relies on type inference rules which are likely to change
--> src/main.rs:16:21
|
16 | server.get("/", middleware! { |_, response|
| ________________^
17 | | let mut data = HashMap::new();
18 | | data.insert("name", "viki");
19 | | return response.render("examples/assets/template.tpl", &data);
20 | | });
| |^
|
= note: #[deny(resolve_trait_on_defaulted_unit)] on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #39216 rust-lang/rust#39216
= note: this error originates in a macro outside of the current crate
error: aborting due to previous error
error: Could not compile nickel-template.
The text was updated successfully, but these errors were encountered:
using nightly rustc, cargo run returns error shown below:
warning: unreachable expression
--> src/main.rs:16:21
|
16 | server.get("/", middleware! { |_, response|
| ________________^
17 | | let mut data = HashMap::new();
18 | | data.insert("name", "viki");
19 | | return response.render("examples/assets/template.tpl", &data);
20 | | });
| |^
|
= note: #[warn(unreachable_code)] on by default
= note: this error originates in a macro outside of the current crate
error: code relies on type inference rules which are likely to change
--> src/main.rs:16:21
|
16 | server.get("/", middleware! { |_, response|
| ________________^
17 | | let mut data = HashMap::new();
18 | | data.insert("name", "viki");
19 | | return response.render("examples/assets/template.tpl", &data);
20 | | });
| |^
|
= note: #[deny(resolve_trait_on_defaulted_unit)] on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #39216 rust-lang/rust#39216
= note: this error originates in a macro outside of the current crate
error: aborting due to previous error
error: Could not compile
nickel-template
.The text was updated successfully, but these errors were encountered: