Small error code explanations improvements
This commit is contained in:
parent
aeedf22880
commit
a9907a1dd1
@ -56,7 +56,6 @@ let Wrapping(x) = x;
|
||||
let y: usize = 1.wrapping_neg();
|
||||
assert_eq!(x, y);
|
||||
```
|
||||
|
||||
"##
|
||||
}
|
||||
|
||||
|
@ -23,8 +23,10 @@ extern "platform-intrinsic" {
|
||||
fn simd_add<T>(a: T, b: T) -> T;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
unsafe { simd_add(0, 1); }
|
||||
// error: invalid monomorphization of `simd_add` intrinsic
|
||||
}
|
||||
```
|
||||
|
||||
The generic type has to be a SIMD type. Example:
|
||||
|
Loading…
Reference in New Issue
Block a user