Skip to content

Commit c0e15ea

Browse files
committed
fixtest
1 parent ce1e048 commit c0e15ea

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
error[E0308]: mismatched types
2+
--> tests/pass/shims/x86/intrinsics-x86-gfni.rs:LL:CC
3+
|
4+
LL | _mm512_loadu_si512(black_box(pointer))
5+
| --------- ^^^^^^^ expected `*const __m512i`, found `*const i32`
6+
| |
7+
| arguments to this function are incorrect
8+
|
9+
= note: expected raw pointer `*const std::arch::x86_64::__m512i`
10+
found raw pointer `*const i32`
11+
help: the return type of this call is `*const i32` due to the type of the argument passed
12+
--> tests/pass/shims/x86/intrinsics-x86-gfni.rs:LL:CC
13+
|
14+
LL | _mm512_loadu_si512(black_box(pointer))
15+
| ^^^^^^^^^^-------^
16+
| |
17+
| this argument influences the return type of `black_box`
18+
note: function defined here
19+
--> RUSTLIB/core/src/hint.rs:LL:CC
20+
|
21+
LL | pub const fn black_box<T>(dummy: T) -> T {
22+
| ^^^^^^^^^
23+
24+
error: aborting due to 1 previous error
25+
26+
For more information about this error, try `rustc --explain E0308`.

0 commit comments

Comments
 (0)