diff options
Diffstat (limited to 'src/test/rustdoc/const-fn.rs')
-rw-r--r-- | src/test/rustdoc/const-fn.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/rustdoc/const-fn.rs b/src/test/rustdoc/const-fn.rs deleted file mode 100644 index 28eba849a..000000000 --- a/src/test/rustdoc/const-fn.rs +++ /dev/null @@ -1,16 +0,0 @@ -#![crate_name = "foo"] - -// @has foo/fn.bar.html -// @has - '//*[@class="rust fn"]' 'pub const fn bar() -> ' -/// foo -pub const fn bar() -> usize { - 2 -} - -// @has foo/struct.Foo.html -// @has - '//*[@class="method has-srclink"]' 'const fn new()' -pub struct Foo(usize); - -impl Foo { - pub const fn new() -> Foo { Foo(0) } -} |