mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add regression test for generic args showing host param
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#![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>() {}
|
||||
Reference in New Issue
Block a user