rust/tests/rustdoc/const-effect-param.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
339 B
Rust
Raw Normal View History

// Check that we don't render host effect parameters & arguments.
#![crate_name = "foo"]
#![feature(effects, const_trait_impl)]
2024-06-21 07:22:29 -05:00
#![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>() {}