2023-11-02 19:44:09 -05:00
|
|
|
// Check that we don't render host effect parameters & arguments.
|
|
|
|
|
2023-10-12 11:49:23 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
#![feature(effects, const_trait_impl)]
|
|
|
|
|
|
|
|
#[const_trait]
|
|
|
|
pub trait Tr {
|
|
|
|
fn f();
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has foo/fn.g.html
|
2023-10-12 12:14:19 -05:00
|
|
|
// @has - '//pre[@class="rust item-decl"]' 'pub const fn g<T: Tr>()'
|
2023-10-12 11:49:23 -05:00
|
|
|
/// foo
|
|
|
|
pub const fn g<T: ~const Tr>() {}
|