rust/tests/rustdoc/const.rs
2023-01-11 09:32:08 +00:00

11 lines
215 B
Rust

#![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
}
}