]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-impl_trait_in_bindings.stderr
MetadataOnlyCodegenBackend: remove `is_inline` call
[rust.git] / src / test / ui / feature-gates / feature-gate-impl_trait_in_bindings.stderr
1 error: expected expression, found keyword `impl`
2   --> $DIR/feature-gate-impl_trait_in_bindings.rs:8:15
3    |
4 LL |     let foo = impl Copy = 42;
5    |               ^^^^ expected expression
6
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
9    |
10 LL | const FOO: impl Copy = 42;
11    |            ^^^^^^^^^
12    |
13    = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
14
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
17    |
18 LL | static BAR: impl Copy = 42;
19    |             ^^^^^^^^^
20    |
21    = help: add #![feature(impl_trait_in_bindings)] to the crate attributes to enable
22
23 error: aborting due to 3 previous errors
24
25 For more information about this error, try `rustc --explain E0562`.