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
fnmain(){// should be [bool; 1]letmut static_array = Default::default();// `std::any::type_name_of_val` is not stable yetfnvalue_type_name<T>(_v:T) -> &'staticstr{
std::any::type_name::<T>()}// rust compiler is right heredbg!(value_type_name(static_array));// [bool; 1]// this call breaks inference of the typeexpects_static_array_ptr(&mut static_array as*mut_);expects_static_array(static_array);}fnexpects_static_array(_static_array:[bool;1]){}fnexpects_static_array_ptr(_static_array_ptr:*mutbool){}
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
rust-analyzer version: 0.4.1581-standalone (fdb8aa2 2023-07-08)
rustc version: 1.70.0 (same on 1.69.0)
Reproduction code
The text was updated successfully, but these errors were encountered: