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