about summary refs log tree commit diff
path: root/src/test/ui/binding
diff options
context:
space:
mode:
authorBastian Kauschke <bastian_kauschke@hotmail.de>2020-11-17 11:44:21 +0100
committerBastian Kauschke <bastian_kauschke@hotmail.de>2020-12-26 18:24:10 +0100
commitc4ba60a191bccd2f2568572efb76e0e37e88dd21 (patch)
tree78fd9e211d1d9143b0d306ad2339a0c30d5e7c63 /src/test/ui/binding
parent18fa7789cdeced758cb4e4db22061c31b4dbad80 (diff)
downloadrust-c4ba60a191bccd2f2568572efb76e0e37e88dd21.tar.gz
rust-c4ba60a191bccd2f2568572efb76e0e37e88dd21.zip
update tests
Diffstat (limited to 'src/test/ui/binding')
-rw-r--r--src/test/ui/binding/const-param.full.stderr9
-rw-r--r--src/test/ui/binding/const-param.min.stderr9
-rw-r--r--src/test/ui/binding/const-param.rs5
-rw-r--r--src/test/ui/binding/const-param.stderr19
4 files changed, 21 insertions, 21 deletions
diff --git a/src/test/ui/binding/const-param.full.stderr b/src/test/ui/binding/const-param.full.stderr
new file mode 100644
index 00000000000..0200c6def24
--- /dev/null
+++ b/src/test/ui/binding/const-param.full.stderr
@@ -0,0 +1,9 @@
+error[E0158]: const parameters cannot be referenced in patterns
+  --> $DIR/const-param.rs:8:9
+   |
+LL |         N => {}
+   |         ^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0158`.
diff --git a/src/test/ui/binding/const-param.min.stderr b/src/test/ui/binding/const-param.min.stderr
new file mode 100644
index 00000000000..0200c6def24
--- /dev/null
+++ b/src/test/ui/binding/const-param.min.stderr
@@ -0,0 +1,9 @@
+error[E0158]: const parameters cannot be referenced in patterns
+  --> $DIR/const-param.rs:8:9
+   |
+LL |         N => {}
+   |         ^
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0158`.
diff --git a/src/test/ui/binding/const-param.rs b/src/test/ui/binding/const-param.rs
index 3c7f4d071f6..4aec801cb15 100644
--- a/src/test/ui/binding/const-param.rs
+++ b/src/test/ui/binding/const-param.rs
@@ -1,6 +1,7 @@
 // Identifier pattern referring to a const generic parameter is an error (issue #68853).
-
-#![feature(const_generics)] //~ WARN the feature `const_generics` is incomplete
+// revisions: full min
+#![cfg_attr(full, feature(const_generics))]
+#![cfg_attr(full, allow(incomplete_features))]
 
 fn check<const N: usize>() {
     match 1 {
diff --git a/src/test/ui/binding/const-param.stderr b/src/test/ui/binding/const-param.stderr
deleted file mode 100644
index d3d06a2d834..00000000000
--- a/src/test/ui/binding/const-param.stderr
+++ /dev/null
@@ -1,19 +0,0 @@
-warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
-  --> $DIR/const-param.rs:3: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
-   = help: consider using `min_const_generics` instead, which is more stable and complete
-
-error[E0158]: const parameters cannot be referenced in patterns
-  --> $DIR/const-param.rs:7:9
-   |
-LL |         N => {}
-   |         ^
-
-error: aborting due to previous error; 1 warning emitted
-
-For more information about this error, try `rustc --explain E0158`.