Add regression test for generic args showing host
param
This commit is contained in:
parent
8f2af7e010
commit
cfb6afa296
1 changed files with 12 additions and 0 deletions
12
tests/rustdoc/const-effect-param.rs
Normal file
12
tests/rustdoc/const-effect-param.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
#![crate_name = "foo"]
|
||||
#![feature(effects, const_trait_impl)]
|
||||
|
||||
#[const_trait]
|
||||
pub trait Tr {
|
||||
fn f();
|
||||
}
|
||||
|
||||
// @has foo/fn.g.html
|
||||
// @has - '//pre[@class="rust item-decl"]' 'pub const fn g<T: Tr<host>>()'
|
||||
/// foo
|
||||
pub const fn g<T: ~const Tr>() {}
|
Loading…
Add table
Add a link
Reference in a new issue