Skip to content

Instantly share code, notes, and snippets.

@lu-zero
Created August 23, 2020 14:13
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 lu-zero/e9544fc801246525544b28d18df92e3c to your computer and use it in GitHub Desktop.
Save lu-zero/e9544fc801246525544b28d18df92e3c to your computer and use it in GitHub Desktop.
warning: function cannot return without recursing
--> src/main.rs:8:5
|
8 | fn default() -> Self {
| ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
...
11 | .. Default::default()
| ------------------ recursive call site
|
= note: `#[warn(unconditional_recursion)]` on by default
= help: a `loop` may express intention better if this is on purpose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment