diff options
| author | Ralf Jung <post@ralfj.de> | 2020-04-22 10:21:32 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-05-09 14:40:17 +0200 |
| commit | 6a8cf4a17c2d2b3daca27e787f4154e233ab4545 (patch) | |
| tree | fdc17050f26e39fb14dac3294879085b1074de15 /src/test/ui/array-slice-vec | |
| parent | 1fce20340a6422b5e1f9738b82a304c4c389171c (diff) | |
| download | rust-6a8cf4a17c2d2b3daca27e787f4154e233ab4545.tar.gz rust-6a8cf4a17c2d2b3daca27e787f4154e233ab4545.zip | |
adjust tests
Diffstat (limited to 'src/test/ui/array-slice-vec')
| -rw-r--r-- | src/test/ui/array-slice-vec/match_arr_unknown_len.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/array-slice-vec/match_arr_unknown_len.stderr | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/array-slice-vec/match_arr_unknown_len.rs b/src/test/ui/array-slice-vec/match_arr_unknown_len.rs index 7f3da75ddcb..45b2889f1ca 100644 --- a/src/test/ui/array-slice-vec/match_arr_unknown_len.rs +++ b/src/test/ui/array-slice-vec/match_arr_unknown_len.rs @@ -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 { diff --git a/src/test/ui/array-slice-vec/match_arr_unknown_len.stderr b/src/test/ui/array-slice-vec/match_arr_unknown_len.stderr index 09f65f6acd0..c94d7d245a3 100644 --- a/src/test/ui/array-slice-vec/match_arr_unknown_len.stderr +++ b/src/test/ui/array-slice-vec/match_arr_unknown_len.stderr @@ -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/match_arr_unknown_len.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[E0308]: mismatched types --> $DIR/match_arr_unknown_len.rs:6:9 |
