Use the same message as type & const generics.
This commit is contained in:
parent
86bd99060c
commit
2aa9c703ce
9 changed files with 50 additions and 71 deletions
|
@ -1,8 +1,10 @@
|
|||
#### Note: this error code is no longer emitted by the compiler.
|
||||
|
||||
A lifetime was declared more than once in the same scope.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0263
|
||||
```compile_fail,E0403
|
||||
fn foo<'a, 'b, 'a>(x: &'a str, y: &'b str, z: &'a str) { // error!
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue