implement #[panic_implementation]
This commit is contained in:
parent
3575be60ea
commit
e44ad61a2d
22 changed files with 379 additions and 18 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#![feature(lang_items)]
|
||||
|
||||
#[lang = "panic_fmt"]
|
||||
#[lang = "panic_impl"]
|
||||
struct Foo; //~ ERROR E0152
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue