We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51a361d commit 0b3ccdeCopy full SHA for 0b3ccde
src/error/abort_unwind.md
@@ -6,7 +6,6 @@ The previous section illustrates the error handling mechanism `panic`. The `cfg
6
Building on the prior lemonade example, we explicitly use the panic strategy to execise different lines of code.
7
8
```rust,editable,ignore,mdbook-runnable
9
-#![feature(cfg_panic)]
10
11
fn drink(beverage: &str) {
12
// You shouldn't drink too much sugary beverages.
@@ -26,7 +25,6 @@ fn main() {
26
25
Here is another example focusing on rewriting `drink()` and explicitly use the `unwind` keyword.
27
28
```rust,editable,ignore
29
30
31
#[cfg(panic = "unwind")]
32
fn ah(){ println!("Spit it out!!!!");}
0 commit comments