Skip to content

Instantly share code, notes, and snippets.

@pyfisch
Created January 25, 2015 16:07
Show Gist options
  • Save pyfisch/4c10dd5ab79a6e715af2 to your computer and use it in GitHub Desktop.
Save pyfisch/4c10dd5ab79a6e715af2 to your computer and use it in GitHub Desktop.
What does this error message mean?
Compiling language-tags v0.0.1 (file:///home/michael/Dokumente/git/rust-language-tags)
src/language.rs:26:5: 26:17 error: expected a literal
src/language.rs:26 Language::Ar => "ar",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
src/language.rs:27:5: 27:17 error: expected a literal
src/language.rs:27 Language::De => "de",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
src/language.rs:28:5: 28:17 error: expected a literal
src/language.rs:28 Language::En => "en",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
src/language.rs:29:5: 29:17 error: expected a literal
src/language.rs:29 Language::Fr => "fr",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
src/language.rs:30:5: 30:17 error: expected a literal
src/language.rs:30 Language::Sl => "sl",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
src/language.rs:26:5: 26:17 error: expected a literal
src/language.rs:26 Language::Ar => "ar",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
src/language.rs:27:5: 27:17 error: expected a literal
src/language.rs:27 Language::De => "de",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
src/language.rs:28:5: 28:17 error: expected a literal
src/language.rs:28 Language::En => "en",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
src/language.rs:29:5: 29:17 error: expected a literal
src/language.rs:29 Language::Fr => "fr",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
src/language.rs:30:5: 30:17 error: expected a literal
src/language.rs:30 Language::Sl => "sl",
^~~~~~~~~~~~
src/lib.rs:1:1: 462:1 note: in expansion of phf_map!
src/language.rs:25:62: 31:3 note: expansion site
error: aborting due to 5 previous errors
error: aborting due to 5 previous errors
Build failed, waiting for other jobs to finish...
Could not compile `language-tags`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment