]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auxiliary/weak-lang-items.rs
Auto merge of #91149 - notriddle:notriddle/rustdoc-doctest-semicolon, r=jyn514
[rust.git] / src / test / ui / auxiliary / weak-lang-items.rs
1 // no-prefer-dynamic
2
3 // This aux-file will require the eh_personality function to be codegen'd, but
4 // it hasn't been defined just yet. Make sure we don't explode.
5
6 #![no_std]
7 #![crate_type = "rlib"]
8
9 struct A;
10
11 impl core::ops::Drop for A {
12     fn drop(&mut self) {}
13 }
14
15 pub fn foo() {
16     let _a = A;
17     panic!("wut");
18 }
19
20 mod std {
21     pub use core::{option, fmt};
22 }