Test cross crate

This commit is contained in:
Oli Scherer 2023-10-12 16:44:37 +00:00
parent c4e61faf2e
commit 8f2af7e010
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#![feature(effects)]
pub const fn load() -> i32 {
0
}

View 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;