mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 09:23:05 +00:00
13 lines
247 B
Rust
13 lines
247 B
Rust
#![crate_name = "foo"]
|
|
#![feature(effects, 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<host>>()'
|
|
/// foo
|
|
pub const fn g<T: ~const Tr>() {}
|