Skip to content

Commit 8f78736

Browse files
committed
Fix error code description
1 parent 908a639 commit 8f78736

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustc_resolve/error_codes.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1645,8 +1645,11 @@ fn main() {
16451645
E0671: r##"
16461646
Const parameters cannot depend on type parameters.
16471647
The following is therefore invalid:
1648-
```
1649-
fn const_id<T, const N: T>() -> T {
1648+
```compile_fail,E0671
1649+
#![feature(const_generics)]
1650+
1651+
fn const_id<T, const N: T>() -> T { // error: const parameter
1652+
// depends on type parameter
16501653
N
16511654
}
16521655
```

0 commit comments

Comments
 (0)