mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
14 lines
291 B
Rust
14 lines
291 B
Rust
// Check that we don't render host effect parameters & arguments.
|
|
|
|
#![crate_name = "foo"]
|
|
#![feature(const_trait_impl)]
|
|
|
|
pub const 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>() {}
|