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