We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeedf22 commit a9907a1Copy full SHA for a9907a1
src/librustc_lint/types.rs
@@ -56,7 +56,6 @@ let Wrapping(x) = x;
56
let y: usize = 1.wrapping_neg();
57
assert_eq!(x, y);
58
```
59
-
60
"##
61
}
62
src/librustc_trans/diagnostics.rs
@@ -23,8 +23,10 @@ extern "platform-intrinsic" {
23
fn simd_add<T>(a: T, b: T) -> T;
24
25
26
-unsafe { simd_add(0, 1); }
27
-// error: invalid monomorphization of `simd_add` intrinsic
+fn main() {
+ unsafe { simd_add(0, 1); }
28
+ // error: invalid monomorphization of `simd_add` intrinsic
29
+}
30
31
32
The generic type has to be a SIMD type. Example:
0 commit comments