#![feature(intrinsics)]
extern "rust-intrinsic" {
- fn foo();
+ fn foo(); // error: unrecognized intrinsic function: `foo`
}
fn main() {
#![feature(intrinsics)]
extern "rust-intrinsic" {
- fn atomic_fence();
+ fn atomic_fence(); // ok!
}
fn main() {
```
"##,
+E0094: r##"
+You gave an invalid number of type parameters to an intrinsic function.
+Erroneous code example:
+
+```
+#![feature(intrinsics)]
+
+extern "rust-intrinsic" {
+ fn size_of<T, U>() -> usize; // error: intrinsic has wrong number
+ // of type parameters
+}
+```
+
+Please check you give the right number of lifetime parameters and/or the
+function definition. Example:
+
+```
+#![feature(intrinsics)]
+
+extern "rust-intrinsic" {
+ fn size_of<T>() -> usize; // ok!
+}
+```
+"##,
+
E0106: r##"
This error indicates that a lifetime is missing from a type. If it is an error
inside a function signature, the problem may be with failing to adhere to the
E0086,
E0090,
E0092,
- E0094,
E0101,
E0102,
E0103,