Remove ffi_returns_twice
feature
This commit is contained in:
parent
5ad7454f75
commit
7331315898
20 changed files with 19 additions and 120 deletions
|
@ -1,9 +1,12 @@
|
|||
#### Note: this error code is no longer emitted by the compiler.
|
||||
|
||||
|
||||
`#[ffi_returns_twice]` was used on something other than a foreign function
|
||||
declaration.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0724
|
||||
```compile_fail
|
||||
#![feature(ffi_returns_twice)]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
|
@ -15,7 +18,7 @@ pub fn foo() {}
|
|||
For example, we might correct the previous example by declaring
|
||||
the function inside of an `extern` block.
|
||||
|
||||
```
|
||||
```compile_fail
|
||||
#![feature(ffi_returns_twice)]
|
||||
|
||||
extern "C" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue