Skip to content

Instantly share code, notes, and snippets.

@killerswan
Last active August 29, 2015 14:02
Show Gist options
  • Save killerswan/3552d816fb18c6e0b32a to your computer and use it in GitHub Desktop.
Save killerswan/3552d816fb18c6e0b32a to your computer and use it in GitHub Desktop.
error: I don't know how to expand a syntax expression into _multiple_ statements: https://github.com/killerswan/ovid/tree/1515763bcb5335f5fc5924d09a8b1c7e3ad2c3f9
$ ./build.sh
CSVProvider.rs:145:23: 158:7 error: mismatched types: expected `@syntax::ast::Pat` but found `@syntax::codemap::Spanned<syntax::ast::Stmt_>` (expected struct syntax::ast::Pat but found struct syntax::codemap::Spanned)
CSVProvider.rs:145 return MacPat::new(quote_stmt!(cx, {
CSVProvider.rs:146 struct MyCSV {
CSVProvider.rs:147 data: Vec<(String)>,
CSVProvider.rs:148 }
CSVProvider.rs:149
CSVProvider.rs:150 impl MyCSV {
...
error: aborting due to previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment