rust/tests/rustdoc/const-effect-param.rs
Oli Scherer e9abb39210 hide host param from generic parameter list of ~const bounds
(cherry picked from commit 6724f9926c9e8c2d37e3e68e44238897bd89fddf)
2023-10-20 17:45:16 -07:00

13 lines
241 B
Rust

#![crate_name = "foo"]
#![feature(effects, 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>() {}