Skip to content

Commit 0570067

Browse files
oli-obkcuviper
authored andcommitted
Add regression test for generic args showing host param
(cherry picked from commit cfb6afa)
1 parent beb80d4 commit 0570067

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/rustdoc/const-effect-param.rs

Lines changed: 12 additions & 0 deletions
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)