Skip to content

Instantly share code, notes, and snippets.

@AurevoirXavier
Last active April 8, 2020 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AurevoirXavier/74cf959a4d9126d9de6f84d7dc8c7af2 to your computer and use it in GitHub Desktop.
Save AurevoirXavier/74cf959a4d9126d9de6f84d7dc8c7af2 to your computer and use it in GitHub Desktop.
[Rust] Confusing Error E0499
#[allow(unconditional_recursion)]
fn bar<'a>(data: &'a mut Vec<&'a u8>) {
bar(data);
bar(data);
}
// ---
#[allow(unconditional_recursion)]
fn bar<'a>(data: &'a mut Vec<&u8>) {
bar(data);
bar(data);
}
@AurevoirXavier
Copy link
Author

AurevoirXavier commented Oct 29, 2019

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