rust/tests/rustdoc/const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
215 B
Rust
Raw Normal View History

2017-03-16 01:15:10 +00:00
#![crate_type="lib"]
pub struct Foo;
impl Foo {
//@ has const/struct.Foo.html '//*[@id="method.new"]//h4[@class="code-header"]' 'const unsafe fn new'
2017-03-16 01:15:10 +00:00
pub const unsafe fn new() -> Foo {
Foo
}
}