summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/const.rs
blob: 587ad4db4782947836a50555d2a8bed8a4b5516f (plain)
1
2
3
4
5
6
7
8
9
10
#![crate_type="lib"]

pub struct Foo;

impl Foo {
    // @has const/struct.Foo.html '//*[@id="method.new"]//h4[@class="code-header"]' 'const unsafe fn new'
    pub const unsafe fn new() -> Foo {
        Foo
    }
}