fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
907 B25 linesraw
1error: expected expression, found keyword `impl`
2  --> $DIR/feature-gate-impl_trait_in_bindings.rs:8:15
3   |
4LL |     let foo = impl Copy = 42;
5   |               ^^^^ expected expression
6
7error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
8  --> $DIR/feature-gate-impl_trait_in_bindings.rs:1:12
9   |
10LL | const FOO: impl Copy = 42;
11   |            ^^^^^^^^^
12   |
13   = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable
14
15error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
16  --> $DIR/feature-gate-impl_trait_in_bindings.rs:4:13
17   |
18LL | static BAR: impl Copy = 42;
19   |             ^^^^^^^^^
20   |
21   = help: add `#![feature(impl_trait_in_bindings)]` to the crate attributes to enable
22
23error: aborting due to 3 previous errors
24
25For more information about this error, try `rustc --explain E0562`.