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