Code
#![allow(incomplete_features)]
#![feature(generic_const_exprs)]
use std::arch::x86_64::*;
fn uwu<const N: i32>() {
unsafe {
let a = _mm_setzero_ps();
let b = _mm_setzero_ps();
_mm_shuffle_ps(a, b, N + 1);
}
}
Current output
error: unconstrained generic constant
--> src/lib.rs:9:30
|
9 | _mm_shuffle_ps(a, b, N + 1);
| ^^^^^
|
= help: try adding a `where` bound using this expression: `where [(); _mm_shuffle_ps]:`
Desired output
error: unconstrained generic constant
--> src/lib.rs:9:30
|
9 | _mm_shuffle_ps(a, b, N + 1);
| ^^^^^
|
= help: try adding a `where` bound using this expression: `where [(); N + 1]:`
Rationale and extra context
No response
Other cases
No response
Anything else?
No response
Code
Current output
Desired output
Rationale and extra context
No response
Other cases
No response
Anything else?
No response