about summary refs log tree commit diff
path: root/tests/rustdoc/const-effect-param.rs
blob: f3f1fcfda65940ae3d13c1d9a3d9c690b01ef1f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Check that we don't render host effect parameters & arguments.

#![crate_name = "foo"]
#![feature(effects, const_trait_impl)]
#![allow(incomplete_features)]

#[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>() {}