Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter09 Nickel template does not compile #1

Closed
lunarpulse opened this issue Sep 22, 2017 · 0 comments
Closed

chapter09 Nickel template does not compile #1

lunarpulse opened this issue Sep 22, 2017 · 0 comments

Comments

@lunarpulse
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants