about summary refs log tree commit diff
path: root/tests/rustdoc-json/impl-trait-precise-capturing.rs
blob: f9fee788ffe6e9e4679a6c0a215e3623142659e3 (plain)
1
2
3
4
5
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> {}