You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a recent rustc 1.91.0-nightly (05f5a58e8 2025-08-19), building the tests fails:
% cargo +nightly test
error[E0308]: mismatched types
--> src/slice/tests/api.rs:30:10
|
30 | assert!(bits.last().unwrap());
| ^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `BitRef<'_>`
|
= note: expected struct `bool`
found type `BitRef<'_>`
help: you might have meant to use field `data` whose type is `bool`
|
30 | assert!(bits.last().unwrap().data);
| +++++
help: consider dereferencing to access the inner value using the Deref trait
|
30 | assert!(*bits.last().unwrap());
| +