assert that unexpectedly unsized fields are sized in the param env
This commit is contained in:
parent
697450151c
commit
3db930a463
4 changed files with 64 additions and 57 deletions
|
@ -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(&[])
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue