@@ -7,7 +7,7 @@ LL | fn uwu_0<const N: &'static mut ()>() {}
77 = note: the only supported types are integers, `bool`, and `char`
88
99error: `&'static u32` is forbidden as the type of a const generic parameter
10- --> $DIR/suggest_feature_only_when_possible.rs:10 :19
10+ --> $DIR/suggest_feature_only_when_possible.rs:15 :19
1111 |
1212LL | fn owo_0<const N: &'static u32>() {}
1313 | ^^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL + #![feature(unsized_const_params)]
2323 |
2424
2525error: `Meow` is forbidden as the type of a const generic parameter
26- --> $DIR/suggest_feature_only_when_possible.rs:18 :20
26+ --> $DIR/suggest_feature_only_when_possible.rs:23 :20
2727 |
2828LL | fn meow_0<const N: Meow>() {}
2929 | ^^^^
@@ -35,7 +35,7 @@ LL + #![feature(adt_const_params)]
3535 |
3636
3737error: `&'static Meow` is forbidden as the type of a const generic parameter
38- --> $DIR/suggest_feature_only_when_possible.rs:20 :20
38+ --> $DIR/suggest_feature_only_when_possible.rs:25 :20
3939 |
4040LL | fn meow_1<const N: &'static Meow>() {}
4141 | ^^^^^^^^^^^^^
@@ -51,39 +51,39 @@ LL + #![feature(unsized_const_params)]
5151 |
5252
5353error: `[Meow; 100]` is forbidden as the type of a const generic parameter
54- --> $DIR/suggest_feature_only_when_possible.rs:22 :20
54+ --> $DIR/suggest_feature_only_when_possible.rs:27 :20
5555 |
5656LL | fn meow_2<const N: [Meow; 100]>() {}
5757 | ^^^^^^^^^^^
5858 |
5959 = note: the only supported types are integers, `bool`, and `char`
6060
6161error: `(Meow, u8)` is forbidden as the type of a const generic parameter
62- --> $DIR/suggest_feature_only_when_possible.rs:24 :20
62+ --> $DIR/suggest_feature_only_when_possible.rs:29 :20
6363 |
6464LL | fn meow_3<const N: (Meow, u8)>() {}
6565 | ^^^^^^^^^^
6666 |
6767 = note: the only supported types are integers, `bool`, and `char`
6868
6969error: `(Meow, String)` is forbidden as the type of a const generic parameter
70- --> $DIR/suggest_feature_only_when_possible.rs:29 :20
70+ --> $DIR/suggest_feature_only_when_possible.rs:34 :20
7171 |
7272LL | fn meow_4<const N: (Meow, String)>() {}
7373 | ^^^^^^^^^^^^^^
7474 |
7575 = note: the only supported types are integers, `bool`, and `char`
7676
7777error: `String` is forbidden as the type of a const generic parameter
78- --> $DIR/suggest_feature_only_when_possible.rs:33 :19
78+ --> $DIR/suggest_feature_only_when_possible.rs:38 :19
7979 |
8080LL | fn nya_0<const N: String>() {}
8181 | ^^^^^^
8282 |
8383 = note: the only supported types are integers, `bool`, and `char`
8484
8585error: `Vec<u32>` is forbidden as the type of a const generic parameter
86- --> $DIR/suggest_feature_only_when_possible.rs:35 :19
86+ --> $DIR/suggest_feature_only_when_possible.rs:40 :19
8787 |
8888LL | fn nya_1<const N: Vec<u32>>() {}
8989 | ^^^^^^^^
0 commit comments