From 514f4230a4b7b5d67fc80eb056d14de0cb3a48fe Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Sun, 5 Jun 2016 23:42:40 +0300 Subject: [PATCH] Make the lang-items example in the book not choke on landing pads. --- src/doc/book/lang-items.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/doc/book/lang-items.md b/src/doc/book/lang-items.md index b948567ac5b74..c56a23e08c846 100644 --- a/src/doc/book/lang-items.md +++ b/src/doc/book/lang-items.md @@ -19,6 +19,8 @@ sugar for dynamic allocations via `malloc` and `free`: #![feature(lang_items, box_syntax, start, libc)] #![no_std] +# #![feature(panic_unwind)] +# extern crate unwind; extern crate libc; extern {