提交 20f22b7f 编写于 作者: G Guillaume Gomez

Add E0093 error explanation

上级 c158be08
...@@ -1022,6 +1022,42 @@ fn main() { ...@@ -1022,6 +1022,42 @@ fn main() {
``` ```
"##, "##,
E0093: r##"
You called an unknown intrinsic function. Erroneous code example:
```
#![feature(intrinsics)]
extern "rust-intrinsic" {
fn foo();
}
fn main() {
unsafe {
foo();
}
}
```
Please check you didn't make a mistake in the function's name. All intrinsic
functions are defined in librustc_trans/trans/intrinsic.rs and in
libcore/intrinsics.rs. Example:
```
#![feature(intrinsics)]
extern "rust-intrinsic" {
fn atomic_fence();
}
fn main() {
unsafe {
atomic_fence();
}
}
```
"##,
E0106: r##" E0106: r##"
This error indicates that a lifetime is missing from a type. If it is an error 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 inside a function signature, the problem may be with failing to adhere to the
...@@ -1688,7 +1724,6 @@ impl Baz for Bar { } // Note: This is OK ...@@ -1688,7 +1724,6 @@ impl Baz for Bar { } // Note: This is OK
E0086, E0086,
E0090, E0090,
E0092, E0092,
E0093,
E0094, E0094,
E0101, E0101,
E0102, E0102,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册