2024-07-12 12:07:16 -05:00
|
|
|
//@ aux-build:precise-capturing.rs
|
|
|
|
|
2024-07-11 18:49:51 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2024-07-12 12:07:16 -05:00
|
|
|
extern crate precise_capturing;
|
|
|
|
|
2024-07-11 18:49:51 -05:00
|
|
|
//@ has foo/fn.two.html '//section[@id="main-content"]//pre' "-> impl Sized + use<'b, 'a>"
|
|
|
|
pub fn two<'a, 'b, 'c>() -> impl Sized + use<'b, 'a /* no 'c */> {}
|
|
|
|
|
|
|
|
//@ has foo/fn.params.html '//section[@id="main-content"]//pre' "-> impl Sized + use<'a, T, N>"
|
|
|
|
pub fn params<'a, T, const N: usize>() -> impl Sized + use<'a, T, N> {}
|
|
|
|
|
|
|
|
//@ has foo/fn.none.html '//section[@id="main-content"]//pre' "-> impl Sized + use<>"
|
|
|
|
pub fn none() -> impl Sized + use<> {}
|
|
|
|
|
|
|
|
//@ has foo/fn.first.html '//section[@id="main-content"]//pre' "-> impl use<> + Sized"
|
|
|
|
pub fn first() -> impl use<> + Sized {}
|
2024-07-12 12:07:16 -05:00
|
|
|
|
|
|
|
//@ has foo/fn.cross_crate_empty.html '//section[@id="main-content"]//pre' "-> impl Sized + use<>"
|
|
|
|
pub use precise_capturing::cross_crate_empty;
|
|
|
|
|
|
|
|
//@ matches foo/fn.cross_crate_missing.html '//section[@id="main-content"]//pre' "-> impl Sized$"
|
|
|
|
pub use precise_capturing::cross_crate_missing;
|
|
|
|
|
|
|
|
//@ has foo/fn.cross_crate_args.html '//section[@id="main-content"]//pre' "-> impl Sized + use<'a, T, N>"
|
|
|
|
pub use precise_capturing::cross_crate_args;
|