Skip to content

Commit 18fa778

Browse files
committed
update error codes
1 parent 49f890b commit 18fa778

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

compiler/rustc_error_codes/src/error_codes/E0730.md

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ An array without a fixed length was pattern-matched.
33
Erroneous code example:
44

55
```compile_fail,E0730
6-
#![feature(const_generics)]
7-
86
fn is_123<const N: usize>(x: [u32; N]) -> bool {
97
match x {
108
[1, 2, ..] => true, // error: cannot pattern-match on an

compiler/rustc_error_codes/src/error_codes/E0770.md

-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ fn foo<T, const N: T>() {} // error!
1010
To fix this error, use a concrete type for the const parameter:
1111

1212
```
13-
#![feature(const_generics)]
1413
fn foo<T, const N: usize>() {}
1514
```

0 commit comments

Comments
 (0)