提交 0ba2db5f 编写于 作者: G Guillaume Gomez

Add E0211 error explanation

上级 ed6940fd
...@@ -1528,6 +1528,29 @@ impl Copy for &'static Bar { } // error ...@@ -1528,6 +1528,29 @@ impl Copy for &'static Bar { } // error
``` ```
"##, "##,
E0211: r##"
You used an intrinsic function which doesn't correspond to its
definition. Erroneous code example:
```
#![feature(intrinsics)]
extern "rust-intrinsic" {
fn size_of<T>(); // error: intrinsic has wrong type
}
```
Please check the function definition. Example:
```
#![feature(intrinsics)]
extern "rust-intrinsic" {
fn size_of<T>() -> usize;
}
```
"##,
E0243: r##" E0243: r##"
This error indicates that not enough type parameters were found in a type or This error indicates that not enough type parameters were found in a type or
trait. trait.
...@@ -1790,7 +1813,6 @@ impl Baz for Bar { } // Note: This is OK ...@@ -1790,7 +1813,6 @@ impl Baz for Bar { } // Note: This is OK
E0208, E0208,
E0209, // builtin traits can only be implemented on structs or enums E0209, // builtin traits can only be implemented on structs or enums
E0210, // type parameter is not constrained by any local type E0210, // type parameter is not constrained by any local type
E0211,
E0212, // cannot extract an associated type from a higher-ranked trait bound E0212, // cannot extract an associated type from a higher-ranked trait bound
E0213, // associated types are not accepted in this context E0213, // associated types are not accepted in this context
E0214, // parenthesized parameters may only be used with a trait E0214, // parenthesized parameters may only be used with a trait
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册