Skip to content

Instantly share code, notes, and snippets.

@jD91mZM2

jD91mZM2/- Secret

Created August 14, 2018 15:09
Show Gist options
  • Save jD91mZM2/1062c287077716829558541075dde205 to your computer and use it in GitHub Desktop.
Save jD91mZM2/1062c287077716829558541075dde205 to your computer and use it in GitHub Desktop.
~  Coding  Rust  rnix  master  3✎  %  cargo run --example error-report /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/./attrsets.nix
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
Running `target/debug/examples/error-report /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/./attrsets.nix`
error: parse error: unexpected token Dynamic([(Meta { span: Span { start: (27, 20), end: Some((27, 24)) }, comments: [] }, Ident("attr"))]) not applicable in this context
Span { start: (27, 18), end: Some((27, 25)) }
if attrPath == [] then e
else if e ? ${attr}
^^^^^^^
then attrByPath (tail attrPath) default e.${attr}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment