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