@@ -28,7 +28,7 @@ error[E0637]: `&` without an explicit lifetime name cannot be used here
2828LL | fn bar<const N: &u8>() {}
2929 | ^ explicit lifetime name needed here
3030
31- error: using `&'static u8` as const generic parameters is forbidden
31+ error: `&'static u8` is forbidden as the type of a const generic parameter
3232 --> $DIR/const-param-elided-lifetime.rs:11:19
3333 |
3434LL | struct A<const N: &u8>;
@@ -37,7 +37,7 @@ LL | struct A<const N: &u8>;
3737 = note: the only supported types are integers, `bool` and `char`
3838 = note: more complex types are supported with `#[feature(const_generics)]`
3939
40- error: using `&'static u8` as const generic parameters is forbidden
40+ error: `&'static u8` is forbidden as the type of a const generic parameter
4141 --> $DIR/const-param-elided-lifetime.rs:16:15
4242 |
4343LL | impl<const N: &u8> A<N> {
@@ -46,7 +46,7 @@ LL | impl<const N: &u8> A<N> {
4646 = note: the only supported types are integers, `bool` and `char`
4747 = note: more complex types are supported with `#[feature(const_generics)]`
4848
49- error: using `&'static u8` as const generic parameters is forbidden
49+ error: `&'static u8` is forbidden as the type of a const generic parameter
5050 --> $DIR/const-param-elided-lifetime.rs:24:15
5151 |
5252LL | impl<const N: &u8> B for A<N> {}
@@ -55,7 +55,7 @@ LL | impl<const N: &u8> B for A<N> {}
5555 = note: the only supported types are integers, `bool` and `char`
5656 = note: more complex types are supported with `#[feature(const_generics)]`
5757
58- error: using `&'static u8` as const generic parameters is forbidden
58+ error: `&'static u8` is forbidden as the type of a const generic parameter
5959 --> $DIR/const-param-elided-lifetime.rs:28:17
6060 |
6161LL | fn bar<const N: &u8>() {}
@@ -64,7 +64,7 @@ LL | fn bar<const N: &u8>() {}
6464 = note: the only supported types are integers, `bool` and `char`
6565 = note: more complex types are supported with `#[feature(const_generics)]`
6666
67- error: using `&'static u8` as const generic parameters is forbidden
67+ error: `&'static u8` is forbidden as the type of a const generic parameter
6868 --> $DIR/const-param-elided-lifetime.rs:19:21
6969 |
7070LL | fn foo<const M: &u8>(&self) {}
0 commit comments