fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
620 B15 linesraw
1error[E0121]: the placeholder `_` is not allowed within types on item signatures for constant items
2  --> $DIR/invalid_infered_static_and_const.rs:1:24
3   |
4LL | const FOO: dyn Fn() -> _ = "";
5   |                        ^ not allowed in type signatures
6
7error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
8  --> $DIR/invalid_infered_static_and_const.rs:2:25
9   |
10LL | static BOO: dyn Fn() -> _ = "";
11   |                         ^ not allowed in type signatures
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0121`.