summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/const-effect-param.rs
blob: f50a9b96d812b43915287526437ab2278a464b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![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>() {}