File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -943,19 +943,19 @@ extern "C" const char *cxx_run_test() noexcept {
943
943
}
944
944
#ifdef __cpp_lib_span
945
945
{
946
- // std::array <T> -> Slice<T>
946
+ // std::span <T> -> Slice<T>
947
947
std::array<int , 3 > cpp_array{1 , 2 , 3 };
948
948
std::span<int > cpp_span (cpp_array);
949
- auto auto_slice_of_cpp_array = rust::Slice (cpp_span);
949
+ auto auto_slice_of_cpp_span = rust::Slice (cpp_span);
950
950
static_assert (
951
- std::is_same_v<decltype (auto_slice_of_cpp_array ), rust::Slice<int >>);
951
+ std::is_same_v<decltype (auto_slice_of_cpp_span ), rust::Slice<int >>);
952
952
}
953
953
{
954
- // const std::array< T> -> Slice<const T>
954
+ // std::span<const T> -> Slice<const T>
955
955
const std::array<int , 3 > cpp_array{1 , 2 , 3 };
956
956
std::span<const int > cpp_span (cpp_array);
957
- auto auto_slice_of_cpp_array = rust::Slice (cpp_span);
958
- static_assert (std::is_same_v<decltype (auto_slice_of_cpp_array ),
957
+ auto auto_slice_of_cpp_span = rust::Slice (cpp_span);
958
+ static_assert (std::is_same_v<decltype (auto_slice_of_cpp_span ),
959
959
rust::Slice<const int >>);
960
960
}
961
961
#endif // __cpp_lib_span
You can’t perform that action at this time.
0 commit comments