]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/auxiliary/issue-19190-3.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / rustdoc / auxiliary / issue-19190-3.rs
1 // compile-flags: -Cmetadata=aux
2
3 use std::ops::Deref;
4
5 pub struct Foo;
6
7 impl Deref for Foo {
8     type Target = String;
9     fn deref(&self) -> &String { loop {} }
10 }
11
12 pub struct Bar;
13 pub struct Baz;
14
15 impl Baz {
16     pub fn baz(&self) {}
17     pub fn static_baz() {}
18 }
19
20 impl Deref for Bar {
21     type Target = Baz;
22     fn deref(&self) -> &Baz { loop {} }
23 }