adjust tests
This commit is contained in:
parent
1fce20340a
commit
6a8cf4a17c
175 changed files with 270 additions and 176 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#![feature(const_generics)]
|
||||
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
|
||||
//~^ WARN the feature `const_generics` is incomplete
|
||||
|
||||
fn is_123<const N: usize>(x: [u32; N]) -> bool {
|
||||
match x {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
|
||||
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/E0730.rs:1:12
|
||||
|
|
||||
LL | #![feature(const_generics)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
|
||||
|
||||
error[E0730]: cannot pattern-match on an array without a fixed length
|
||||
--> $DIR/E0730.rs:6:9
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue