2022-09-30 16:19:19 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
#![no_std]
|
|
|
|
|
|
|
|
pub struct MyBox<T: ?Sized>(*const T);
|
|
|
|
|
|
|
|
// @has 'foo/fn.alpha.html'
|
2023-01-14 11:58:55 -06:00
|
|
|
// @snapshot link_slice_u32 - '//div[@class="item-decl"]/pre[@class="rust"]/code'
|
2022-09-30 16:19:19 -05:00
|
|
|
pub fn alpha() -> &'static [u32; 1] {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has 'foo/fn.beta.html'
|
2023-01-14 11:58:55 -06:00
|
|
|
// @snapshot link_slice_generic - '//div[@class="item-decl"]/pre[@class="rust"]/code'
|
2022-09-30 16:19:19 -05:00
|
|
|
pub fn beta<T>() -> &'static [T; 1] {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has 'foo/fn.gamma.html'
|
2023-01-14 11:58:55 -06:00
|
|
|
// @snapshot link_box_u32 - '//div[@class="item-decl"]/pre[@class="rust"]/code'
|
2022-09-30 16:19:19 -05:00
|
|
|
pub fn gamma() -> MyBox<[u32; 1]> {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has 'foo/fn.delta.html'
|
2023-01-14 11:58:55 -06:00
|
|
|
// @snapshot link_box_generic - '//div[@class="item-decl"]/pre[@class="rust"]/code'
|
2022-09-30 16:19:19 -05:00
|
|
|
pub fn delta<T>() -> MyBox<[T; 1]> {
|
|
|
|
loop {}
|
|
|
|
}
|