rust/tests/rustdoc/const-effect-param.rs
2024-11-03 18:59:31 +00:00

15 lines
299 B
Rust

// Check that we don't render host effect parameters & arguments.
#![crate_name = "foo"]
#![feature(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>()'
/// foo
pub const fn g<T: ~const Tr>() {}