fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
714 B21 linesraw
1error[E0121]: the type placeholder `_` is not allowed within types on item signatures
2  --> $DIR/E0121.rs:1:13
3   |
4LL | fn foo() -> _ { 5 }
5   |             ^
6   |             |
7   |             not allowed in type signatures
8   |             help: replace `_` with the correct return type: `i32`
9
10error[E0121]: the type placeholder `_` is not allowed within types on item signatures
11  --> $DIR/E0121.rs:3:13
12   |
13LL | static BAR: _ = "test";
14   |             ^
15   |             |
16   |             not allowed in type signatures
17   |             help: replace `_` with the correct type: `&'static str`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0121`.