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
I'm working on #16918, and as part of the DSTification of Hash, I'm adding tests to make sure that hashing Box<[T]> and Box<str> work. But there doesn't seem to be a way to create a boxed str.
I tried the following:
fnmain(){let _:Box<str> = box "a";//^~ error: mismatched types: expected `Box<str>`, found `Box<&'static str>`let _:Box<str> = box *"a";//^~ error: cannot move a value of type str: the size of str cannot be statically determined}
I'm working on #16918, and as part of the DSTification of
Hash
, I'm adding tests to make sure that hashingBox<[T]>
andBox<str>
work. But there doesn't seem to be a way to create a boxed str.I tried the following:
cc @nick29581
The text was updated successfully, but these errors were encountered: