Skip to content

Commit 8f2af7e

Browse files
committed
Test cross crate
1 parent c4e61fa commit 8f2af7e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![feature(effects)]
2+
3+
pub const fn load() -> i32 {
4+
0
5+
}
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Regression test for issue #116629.
2+
// Check that we render the correct generic params of const fn
3+
4+
// aux-crate:const_fn=const-fn.rs
5+
// edition: 2021
6+
#![crate_name = "user"]
7+
8+
// @has user/fn.load.html
9+
// @has - '//pre[@class="rust item-decl"]' "pub const fn load() -> i32"
10+
pub use const_fn::load;

0 commit comments

Comments
 (0)