Remove in-band lifetimes
This commit is contained in:
parent
4e82f35492
commit
bb548a918a
67 changed files with 58 additions and 1459 deletions
|
@ -1,8 +1,10 @@
|
|||
#### Note: this error code is no longer emitted by the compiler.
|
||||
|
||||
In-band lifetimes cannot be used in `fn`/`Fn` syntax.
|
||||
|
||||
Erroneous code examples:
|
||||
|
||||
```compile_fail,E0687
|
||||
```ignore (feature got removed)
|
||||
#![feature(in_band_lifetimes)]
|
||||
|
||||
fn foo(x: fn(&'a u32)) {} // error!
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#### Note: this error code is no longer emitted by the compiler.
|
||||
|
||||
In-band lifetimes were mixed with explicit lifetime binders.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0688
|
||||
```ignore (feature got removed)
|
||||
#![feature(in_band_lifetimes)]
|
||||
|
||||
fn foo<'a>(x: &'a u32, y: &'b u32) {} // error!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue