]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/auxiliary/unstable-trait.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / rustdoc / auxiliary / unstable-trait.rs
1 #![feature(staged_api)]
2 #![stable(feature = "private_general", since = "1.0.0")]
3
4 #[unstable(feature = "private_trait", issue = "none")]
5 pub trait Bar {}
6
7 #[stable(feature = "private_general", since = "1.0.0")]
8 pub struct Foo {
9     // nothing
10 }
11
12 impl Foo {
13     #[stable(feature = "private_general", since = "1.0.0")]
14     pub fn stable_impl() {}
15 }
16
17 impl Foo {
18     #[unstable(feature = "private_trait", issue = "none")]
19     pub fn bar() {}
20
21     #[stable(feature = "private_general", since = "1.0.0")]
22     pub fn bar2() {}
23 }
24
25 #[stable(feature = "private_general", since = "1.0.0")]
26 impl Bar for Foo {}