summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-56445-1.min.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/issues/issue-56445-1.min.stderr')
-rw-r--r--tests/ui/const-generics/issues/issue-56445-1.min.stderr8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/const-generics/issues/issue-56445-1.min.stderr b/tests/ui/const-generics/issues/issue-56445-1.min.stderr
index 9f8801341..71a7051f2 100644
--- a/tests/ui/const-generics/issues/issue-56445-1.min.stderr
+++ b/tests/ui/const-generics/issues/issue-56445-1.min.stderr
@@ -1,10 +1,10 @@
-error[E0771]: use of non-static lifetime `'a` in const generic
+error[E0770]: the type of const parameters must not depend on other generic parameters
--> $DIR/issue-56445-1.rs:9:26
|
LL | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
- | ^^
+ | ^^ the type must not depend on the parameter `'a`
|
- = note: for more information, see issue #74052 <https://github.com/rust-lang/rust/issues/74052>
+ = note: lifetime parameters may not be used in the type of const parameters
error: `&str` is forbidden as the type of a const generic parameter
--> $DIR/issue-56445-1.rs:9:25
@@ -17,4 +17,4 @@ LL | struct Bug<'a, const S: &'a str>(PhantomData<&'a ()>);
error: aborting due to 2 previous errors
-For more information about this error, try `rustc --explain E0771`.
+For more information about this error, try `rustc --explain E0770`.