]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/cannot-infer-const-args.stderr
5528c2fca6a3ba43e3ddba53fc864af54b789953
[rust.git] / src / test / ui / const-generics / cannot-infer-const-args.stderr
1 warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2   --> $DIR/cannot-infer-const-args.rs:1:12
3    |
4 LL | #![feature(const_generics)]
5    |            ^^^^^^^^^^^^^^
6
7 error[E0282]: type annotations needed
8   --> $DIR/cannot-infer-const-args.rs:9:5
9    |
10 LL |     foo();
11    |     ^^^ cannot infer type for `fn() -> usize {foo::<_>}`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0282`.