]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/infer/one-param-uninferred.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / const-generics / infer / one-param-uninferred.stderr
CommitLineData
fc512014 1error[E0282]: type annotations needed
94222f64 2 --> $DIR/one-param-uninferred.rs:9:23
fc512014
XL
3 |
4LL | let _: [u8; 17] = foo();
923072b8 5 | ^^^ cannot infer the value of the const parameter `M` declared on the function `foo`
fc512014 6 |
923072b8 7help: consider specifying the generic arguments
fc512014 8 |
064997fb
FG
9LL | let _: [u8; 17] = foo::<17, M>();
10 | +++++++++
fc512014
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0282`.