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

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

15 lines
299 B
Rust
Raw Permalink Normal View History

// Check that we don't render host effect parameters & arguments.
#![crate_name = "foo"]
2024-10-30 13:03:44 -05:00
#![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>() {}