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/error-codes | |
| parent | 1fce20340a6422b5e1f9738b82a304c4c389171c (diff) | |
| download | rust-6a8cf4a17c2d2b3daca27e787f4154e233ab4545.tar.gz rust-6a8cf4a17c2d2b3daca27e787f4154e233ab4545.zip | |
adjust tests
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0730.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0730.stderr | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0730.rs b/src/test/ui/error-codes/E0730.rs index 66a6e1c817a..30745814b4a 100644 --- a/src/test/ui/error-codes/E0730.rs +++ b/src/test/ui/error-codes/E0730.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/error-codes/E0730.stderr b/src/test/ui/error-codes/E0730.stderr index b0d43225be6..f915f6edef5 100644 --- a/src/test/ui/error-codes/E0730.stderr +++ b/src/test/ui/error-codes/E0730.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/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 |
