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

Quick-start fails with cannot find trait Error in this scope #589

Closed
szabgab opened this issue Jun 23, 2023 · 0 comments · Fixed by #590
Closed

Quick-start fails with cannot find trait Error in this scope #589

szabgab opened this issue Jun 23, 2023 · 0 comments · Fixed by #590

Comments

@szabgab
Copy link
Contributor

szabgab commented Jun 23, 2023

I created a project, update Cargo.toml with

[dependencies]
handlebars = "4.3.7"
serde_json = "1.0.97"

and got this error

$ cargo run
   Compiling proc-macro2 v1.0.60
   Compiling unicode-ident v1.0.9
   Compiling quote v1.0.28
   Compiling thiserror v1.0.40
   Compiling ucd-trie v0.1.5
   Compiling serde v1.0.164
   Compiling once_cell v1.18.0
   Compiling serde_json v1.0.97
   Compiling itoa v1.0.6
   Compiling ryu v1.0.13
   Compiling log v0.4.19
   Compiling syn v2.0.18
   Compiling thiserror-impl v1.0.40
   Compiling pest v2.7.0
   Compiling pest_meta v2.7.0
   Compiling pest_generator v2.7.0
   Compiling pest_derive v2.7.0
   Compiling handlebars v4.3.7
   Compiling handlebars-quick v0.1.0 (/home/gabor/work/slides/rust/examples/handlebars-quick)
error[E0405]: cannot find trait `Error` in this scope
 --> src/main.rs:4:33
  |
4 | fn main() -> Result<(), Box<dyn Error>> {
  |                                 ^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
1 + use core::error::Error;
  |
1 + use std::error::Error;
  |

For more information about this error, try `rustc --explain E0405`.
error: could not compile `handlebars-quick` (bin "handlebars-quick") due to previous error
szabgab added a commit to szabgab/handlebars-rust that referenced this issue Jun 23, 2023
@sunng87 sunng87 linked a pull request Jun 23, 2023 that will close this issue
sunng87 added a commit that referenced this issue Jun 23, 2023
fix issue #589 to make the quick-start example complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant