fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
548 B17 linesraw
1warning: the feature `const_generics` is incomplete and may cause the compiler to crash
2  --> $DIR/cannot-infer-const-args.rs:1:12
3   |
4LL | #![feature(const_generics)]
5   |            ^^^^^^^^^^^^^^
6   |
7   = note: `#[warn(incomplete_features)]` on by default
8
9error[E0282]: type annotations needed
10  --> $DIR/cannot-infer-const-args.rs:9:5
11   |
12LL |     foo();
13   |     ^^^ cannot infer type for fn item `fn() -> usize {foo::<_: usize>}`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0282`.