assert that unexpectedly unsized fields are sized in the param env
This commit is contained in:
@@ -20,7 +20,7 @@ pub struct IndexSlice<I: Idx, T> {
|
||||
|
||||
impl<I: Idx, T> IndexSlice<I, T> {
|
||||
#[inline]
|
||||
pub const fn empty() -> &'static Self {
|
||||
pub const fn empty<'a>() -> &'a Self {
|
||||
Self::from_raw(&[])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user