Skip to content

Commit 899d013

Browse files
committed
Fix E0670 doc error
1 parent 7461a5e commit 899d013

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc_resolve/diagnostics.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,8 +1646,11 @@ E0670: r##"
16461646
Const parameters cannot depend on type parameters.
16471647
The following is therefore invalid:
16481648
1649-
```
1649+
```compile_fail,E0670
1650+
#![feature(const_generics)]
1651+
16501652
fn const_id<T, const N: T>() -> T {
1653+
// ERROR: const parameters cannot depend on type parameters
16511654
N
16521655
}
16531656
```

0 commit comments

Comments
 (0)