0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-28 21:12:18 +01:00
rust/tests/rustdoc/const.rs
2024-06-24 11:08:41 +02: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
}
}