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)]
|
2024-06-21 07:22:29 -05:00
|
|
|
#![allow(incomplete_features)]
|
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>() {}
|