implement #[panic_implementation]

This commit is contained in:
Jorge Aparicio 2018-04-30 10:55:24 +02:00
parent 3575be60ea
commit e44ad61a2d
22 changed files with 379 additions and 18 deletions

View file

@ -10,7 +10,7 @@
#![feature(lang_items)]
#[lang = "panic_fmt"]
#[lang = "panic_impl"]
struct Foo; //~ ERROR E0152
fn main() {

View file

@ -1,4 +1,4 @@
error[E0152]: duplicate lang item found: `panic_fmt`.
error[E0152]: duplicate lang item found: `panic_impl`.
--> $DIR/E0152.rs:14:1
|
LL | struct Foo; //~ ERROR E0152