We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7b5a0f commit f5e699cCopy full SHA for f5e699c
compiler/rustc_error_codes/src/error_codes/E0771.md
@@ -6,7 +6,7 @@ allowed.
6
Erroneous code example:
7
8
```compile_fail,E0770
9
-#![feature(adt_const_params)]
+#![feature(adt_const_params, unsized_const_params)]
10
11
fn function_with_str<'a, const STRING: &'a str>() {} // error!
12
```
@@ -15,7 +15,7 @@ To fix this issue, the lifetime in the const generic need to be changed to
15
`'static`:
16
17
18
19
20
fn function_with_str<const STRING: &'static str>() {} // ok!
21
0 commit comments