2022-06-02 16:28:18 -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-06-02 16:28:18 -05:00
|
|
|
pub fn alpha() -> &'static [u32] {
|
|
|
|
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-06-02 16:28:18 -05:00
|
|
|
pub fn beta<T>() -> &'static [T] {
|
|
|
|
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-06-02 16:28:18 -05:00
|
|
|
pub fn gamma() -> MyBox<[u32]> {
|
|
|
|
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-06-02 16:28:18 -05:00
|
|
|
pub fn delta<T>() -> MyBox<[T]> {
|
|
|
|
loop {}
|
|
|
|
}
|