Skip to content

Commit f5e699c

Browse files
committed
s
1 parent a7b5a0f commit f5e699c

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+2
-2
lines changed

compiler/rustc_error_codes/src/error_codes/E0771.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ allowed.
66
Erroneous code example:
77

88
```compile_fail,E0770
9-
#![feature(adt_const_params)]
9+
#![feature(adt_const_params, unsized_const_params)]
1010
1111
fn function_with_str<'a, const STRING: &'a str>() {} // error!
1212
```
@@ -15,7 +15,7 @@ To fix this issue, the lifetime in the const generic need to be changed to
1515
`'static`:
1616

1717
```
18-
#![feature(adt_const_params)]
18+
#![feature(adt_const_params, unsized_const_params)]
1919
2020
fn function_with_str<const STRING: &'static str>() {} // ok!
2121
```

0 commit comments

Comments
 (0)