]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/intra-doc/auxiliary/extern-builtin-type-impl-dep.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / rustdoc / intra-doc / auxiliary / extern-builtin-type-impl-dep.rs
CommitLineData
5099ac24
FG
1// no-prefer-dynamic
2
5e7ed085 3#![feature(lang_items, rustc_attrs)]
5099ac24
FG
4#![crate_type = "rlib"]
5#![no_std]
6
7pub struct DerefsToF64(f64);
8
9impl core::ops::Deref for DerefsToF64 {
10 type Target = f64;
11 fn deref(&self) -> &Self::Target {
12 &self.0
13 }
14}
15
16mod 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"]
25fn foo() {}
26
27#[panic_handler]
28fn bar(_: &core::panic::PanicInfo) -> ! { loop {} }