Skip to content

Commit

Permalink
Add regression test for generic args showing host param
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 12, 2023
1 parent 8f2af7e commit cfb6afa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/rustdoc/const-effect-param.rs
Original file line number Diff line number Diff line change
@@ -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>() {}

0 comments on commit cfb6afa

Please sign in to comment.