Skip to content

Commit cfb6afa

Browse files
committed
Add regression test for generic args showing host param
1 parent 8f2af7e commit cfb6afa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/rustdoc/const-effect-param.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![crate_name = "foo"]
2+
#![feature(effects, const_trait_impl)]
3+
4+
#[const_trait]
5+
pub trait Tr {
6+
fn f();
7+
}
8+
9+
// @has foo/fn.g.html
10+
// @has - '//pre[@class="rust item-decl"]' 'pub const fn g<T: Tr<host>>()'
11+
/// foo
12+
pub const fn g<T: ~const Tr>() {}

0 commit comments

Comments
 (0)