]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/cannot-infer-const-args.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / const-generics / cannot-infer-const-args.stderr
index 6696b025855a87bc9c57d67e9001212f4d95f759..b29d27e524751dd06023dfec1f09b9de2c7ecb7d 100644 (file)
@@ -11,7 +11,9 @@ error[E0282]: type annotations needed
   --> $DIR/cannot-infer-const-args.rs:9:5
    |
 LL |     foo();
-   |     ^^^ cannot infer type for fn item `fn() -> usize {foo::<{_: usize}>}`
+   |     ^^^
+   |
+   = note: unable to infer the value of a const parameter
 
 error: aborting due to previous error; 1 warning emitted