misc nameres changes for anon consts
This commit is contained in:
parent
4a18324a4d
commit
442617c046
7 changed files with 202 additions and 133 deletions
|
@ -1,9 +1,11 @@
|
|||
#### Note: this error code is no longer emitted by the compiler
|
||||
|
||||
A non-`'static` lifetime was used in a const generic. This is currently not
|
||||
allowed.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0771
|
||||
```compile_fail,E0770
|
||||
#![feature(adt_const_params)]
|
||||
|
||||
fn function_with_str<'a, const STRING: &'a str>() {} // error!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue