1
Fork 0

Use the same message as type & const generics.

This commit is contained in:
Camille GILLOT 2022-06-02 20:46:40 +02:00
parent 86bd99060c
commit 2aa9c703ce
9 changed files with 50 additions and 71 deletions

View file

@ -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!
}
```