diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-12 16:49:23 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2023-10-12 16:49:23 +0000 |
| commit | cfb6afa2965a1504f366eb258193219c4a820141 (patch) | |
| tree | d130cb87890b332cf79bf25d5fb0a439e04250d7 | |
| parent | 8f2af7e010945e6d57e839db2673e276e8bf6532 (diff) | |
| download | rust-cfb6afa2965a1504f366eb258193219c4a820141.tar.gz rust-cfb6afa2965a1504f366eb258193219c4a820141.zip | |
Add regression test for generic args showing `host` param
| -rw-r--r-- | tests/rustdoc/const-effect-param.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc/const-effect-param.rs b/tests/rustdoc/const-effect-param.rs new file mode 100644 index 00000000000..b1155dd9d8f --- /dev/null +++ b/tests/rustdoc/const-effect-param.rs @@ -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>() {} |
