Test cross crate
This commit is contained in:
parent
c4e61faf2e
commit
8f2af7e010
2 changed files with 15 additions and 0 deletions
5
tests/rustdoc/inline_cross/auxiliary/const-fn.rs
Normal file
5
tests/rustdoc/inline_cross/auxiliary/const-fn.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
#![feature(effects)]
|
||||
|
||||
pub const fn load() -> i32 {
|
||||
0
|
||||
}
|
10
tests/rustdoc/inline_cross/const-fn.rs
Normal file
10
tests/rustdoc/inline_cross/const-fn.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
// Regression test for issue #116629.
|
||||
// Check that we render the correct generic params of const fn
|
||||
|
||||
// aux-crate:const_fn=const-fn.rs
|
||||
// edition: 2021
|
||||
#![crate_name = "user"]
|
||||
|
||||
// @has user/fn.load.html
|
||||
// @has - '//pre[@class="rust item-decl"]' "pub const fn load() -> i32"
|
||||
pub use const_fn::load;
|
Loading…
Add table
Add a link
Reference in a new issue