about summary refs log tree commit diff
path: root/tests/rustdoc-js/sort-stability.rs
blob: 68662bb3aab6c887d44ef17328a32c7673d4d22b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(staged_api)]
#![stable(feature = "foo_lib", since = "1.0.0")]

#[stable(feature = "old_foo", since = "1.0.1")]
pub mod old {
    /// Old, stable foo
    #[stable(feature = "old_foo", since = "1.0.1")]
    pub fn foo() {}
}

#[unstable(feature = "new_foo", issue = "none")]
pub mod new {
    /// New, unstable foo
    #[unstable(feature = "new_foo", issue = "none")]
    pub fn foo() {}
}