about summary refs log tree commit diff
path: root/src/test/rustdoc/const.rs
blob: c33db5809cc7c5d685e47d439e66523f7d65a527 (plain)
1
2
3
4
5
6
7
8
9
10
#![crate_type="lib"]

pub struct Foo;

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