Skip to content

Commit c9a9618

Browse files
committed
add panic_const_neg_overflow to minicore.rs
1 parent c0082f9 commit c9a9618

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/auxiliary/minicore.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ trait Drop {
192192
fn drop(&mut self);
193193
}
194194

195+
#[lang = "panic"]
196+
pub fn panic(_msg: &'static str) {}
197+
198+
#[lang = "panic_const_neg_overflow"]
199+
pub fn panic_const_neg_overflow() {}
200+
195201
#[lang = "neg"]
196202
trait Neg {
197203
type Output;

0 commit comments

Comments
 (0)