1
Fork 0

Add regression test for generic args showing host param

This commit is contained in:
Oli Scherer 2023-10-12 16:49:23 +00:00
parent 8f2af7e010
commit cfb6afa296

View 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>() {}