]>
Commit | Line | Data |
---|---|---|
5099ac24 FG |
1 | // no-prefer-dynamic |
2 | ||
5e7ed085 | 3 | #![feature(lang_items, rustc_attrs)] |
5099ac24 FG |
4 | #![crate_type = "rlib"] |
5 | #![no_std] | |
6 | ||
7 | pub struct DerefsToF64(f64); | |
8 | ||
9 | impl core::ops::Deref for DerefsToF64 { | |
10 | type Target = f64; | |
11 | fn deref(&self) -> &Self::Target { | |
12 | &self.0 | |
13 | } | |
14 | } | |
15 | ||
16 | mod inner { | |
5099ac24 FG |
17 | impl f64 { |
18 | /// [f64::clone] | |
5e7ed085 | 19 | #[rustc_allow_incoherent_impl] |
5099ac24 FG |
20 | pub fn method() {} |
21 | } | |
22 | } | |
23 | ||
24 | #[lang = "eh_personality"] | |
25 | fn foo() {} | |
26 | ||
27 | #[panic_handler] | |
28 | fn bar(_: &core::panic::PanicInfo) -> ! { loop {} } |