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"]
|
2024-10-30 13:03:44 -05:00
|
|
|
#![feature(const_trait_impl)]
|
2023-10-12 11:49:23 -05:00
|
|
|
|
|
|
|
#[const_trait]
|
|
|
|
pub trait Tr {
|
|
|
|
fn f();
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has foo/fn.g.html
|
|
|
|
//@ 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>() {}
|