1
Fork 0

Add rustdoc-json support for use<>

This commit is contained in:
Michael Goulet 2024-07-11 19:50:03 -04:00
parent 843f5dd93b
commit bd135e487f
5 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,6 @@
#![feature(precise_capturing)]
// @is "$.index[*][?(@.name=='hello')].inner.function.decl.output.impl_trait[1].use[0]" \"\'a\"
// @is "$.index[*][?(@.name=='hello')].inner.function.decl.output.impl_trait[1].use[1]" \"T\"
// @is "$.index[*][?(@.name=='hello')].inner.function.decl.output.impl_trait[1].use[2]" \"N\"
pub fn hello<'a, T, const N: usize>() -> impl Sized + use<'a, T, N> {}