Small error code explanations improvements

This commit is contained in:
Guillaume Gomez 2016-08-26 00:14:01 +02:00
parent aeedf22880
commit a9907a1dd1
2 changed files with 4 additions and 3 deletions

View File

@ -56,7 +56,6 @@ let Wrapping(x) = x;
let y: usize = 1.wrapping_neg();
assert_eq!(x, y);
```
"##
}

View File

@ -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: