]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/const.rs
Rollup merge of #106407 - mejrs:attr_check, r=compiler-errors
[rust.git] / tests / rustdoc / const.rs
1 #![crate_type="lib"]
2
3 pub struct Foo;
4
5 impl Foo {
6     // @has const/struct.Foo.html '//*[@id="method.new"]//h4[@class="code-header"]' 'const unsafe fn new'
7     pub const unsafe fn new() -> Foo {
8         Foo
9     }
10 }