2017-03-15 20:15:10 -05:00
|
|
|
#![crate_type="lib"]
|
|
|
|
|
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has const/struct.Foo.html '//*[@id="method.new"]//h4[@class="code-header"]' 'const unsafe fn new'
|
2017-03-15 20:15:10 -05:00
|
|
|
pub const unsafe fn new() -> Foo {
|
|
|
|
Foo
|
|
|
|
}
|
|
|
|
}
|