We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc1ab3d commit 860c7e4Copy full SHA for 860c7e4
src/test/ui/issues/issue-54954.stderr
@@ -8,7 +8,10 @@ error[E0283]: type annotations needed
8
--> $DIR/issue-54954.rs:3:24
9
|
10
LL | const ARR_LEN: usize = Tt::const_val::<[i8; 123]>();
11
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
12
+ | |
13
+ | cannot infer type
14
+ | help: consider specifying the type argument in the function call: `Tt::const_val::<[i8; 123]>::<T>`
15
...
16
LL | const fn const_val<T: Sized>() -> usize {
17
| --------- - required by this bound in `Tt::const_val`
0 commit comments