Skip to content

Instantly share code, notes, and snippets.

@aurexav
Last active April 8, 2020 06:14
Show Gist options
  • Save aurexav/74cf959a4d9126d9de6f84d7dc8c7af2 to your computer and use it in GitHub Desktop.
Save aurexav/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);
}
@aurexav
Copy link
Author

aurexav commented Oct 29, 2019

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