error[E0080]: evaluation panicked: error type is too big
--> $RUST/core/src/panic.rs
|
| $crate::panicking::panic_fmt($crate::const_format_args!($($t)+));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `diskann_quantization::error::InlineError::<4>::new::<Error>::{constant#0}` failed here
|
::: src/error.rs
|
| const { assert!(std::mem::size_of::<T>() <= N, "error type is too big") };
| --------------------------------------------------------------- in this macro invocation
note: erroneous constant encountered
--> src/error.rs
|
| const { assert!(std::mem::size_of::<T>() <= N, "error type is too big") };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: the above error was encountered while instantiating `fn InlineError::<4>::new::<Error>`
--> tests/compile-fail/error/inline_error_size.rs:21:13
|
21 | let _ = InlineError::<4>::new(Error(10));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^