mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
16 lines
339 B
Rust
16 lines
339 B
Rust
// 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>() {}
|