summaryrefslogtreecommitdiffstats
path: root/src/test/ui/enum
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/enum')
-rw-r--r--src/test/ui/enum/issue-67945-2.rs2
-rw-r--r--src/test/ui/enum/issue-67945-2.stderr6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/enum/issue-67945-2.rs b/src/test/ui/enum/issue-67945-2.rs
index e5044468d..2eb123b73 100644
--- a/src/test/ui/enum/issue-67945-2.rs
+++ b/src/test/ui/enum/issue-67945-2.rs
@@ -1,7 +1,7 @@
#![feature(type_ascription)]
enum Bug<S> { //~ ERROR parameter `S` is never used
- Var = 0: S,
+ Var = type_ascribe!(0, S),
//~^ ERROR generic parameters may not be used
}
diff --git a/src/test/ui/enum/issue-67945-2.stderr b/src/test/ui/enum/issue-67945-2.stderr
index 4f5e236a3..63d3521af 100644
--- a/src/test/ui/enum/issue-67945-2.stderr
+++ b/src/test/ui/enum/issue-67945-2.stderr
@@ -1,8 +1,8 @@
error: generic parameters may not be used in const operations
- --> $DIR/issue-67945-2.rs:4:14
+ --> $DIR/issue-67945-2.rs:4:28
|
-LL | Var = 0: S,
- | ^ cannot perform const operation using `S`
+LL | Var = type_ascribe!(0, S),
+ | ^ cannot perform const operation using `S`
|
= note: type parameters may not be used in const expressions
= help: use `#![feature(generic_const_exprs)]` to allow generic const expressions