1 error[E0435]: attempt to use a non-constant value in a constant
2 --> $DIR/bindings.rs:5:29
4 LL | const foo: impl Clone = x;
5 | --- ^ non-constant value
7 | help: consider using `let` instead of `const`
9 error[E0435]: attempt to use a non-constant value in a constant
10 --> $DIR/bindings.rs:11:33
12 LL | const foo: impl Clone = x;
13 | --- ^ non-constant value
15 | help: consider using `let` instead of `const`
17 error[E0435]: attempt to use a non-constant value in a constant
18 --> $DIR/bindings.rs:18:33
20 LL | const foo: impl Clone = x;
21 | --- ^ non-constant value
23 | help: consider using `let` instead of `const`
25 error[E0435]: attempt to use a non-constant value in a constant
26 --> $DIR/bindings.rs:25:33
28 LL | const foo: impl Clone = x;
29 | --- ^ non-constant value
31 | help: consider using `let` instead of `const`
33 warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
34 --> $DIR/bindings.rs:1:12
36 LL | #![feature(impl_trait_in_bindings)]
37 | ^^^^^^^^^^^^^^^^^^^^^^
39 = note: `#[warn(incomplete_features)]` on by default
40 = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
42 error: aborting due to 4 previous errors; 1 warning emitted
44 For more information about this error, try `rustc --explain E0435`.