Skip to content

Commit aac8fa2

Browse files
Introduce core::simd trait imports in tests
1 parent c31906e commit aac8fa2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/slice/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3569,6 +3569,7 @@ impl<T> [T] {
35693569
///
35703570
/// ```
35713571
/// #![feature(portable_simd)]
3572+
/// use core::simd::SimdFloat;
35723573
///
35733574
/// let short = &[1, 2, 3];
35743575
/// let (prefix, middle, suffix) = short.as_simd::<4>();

core/tests/simd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use core::simd::f32x4;
2+
use core::simd::SimdFloat;
23

34
#[test]
45
fn testing() {

0 commit comments

Comments
 (0)