--> $DIR/bindings.rs:5:29
|
LL | const foo: impl Clone = x;
- | ^ non-constant value
+ | --- ^ non-constant value
+ | |
+ | help: consider using `let` instead of `const`
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/bindings.rs:11:33
|
LL | const foo: impl Clone = x;
- | ^ non-constant value
+ | --- ^ non-constant value
+ | |
+ | help: consider using `let` instead of `const`
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/bindings.rs:18:33
|
LL | const foo: impl Clone = x;
- | ^ non-constant value
+ | --- ^ non-constant value
+ | |
+ | help: consider using `let` instead of `const`
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/bindings.rs:25:33
|
LL | const foo: impl Clone = x;
- | ^ non-constant value
+ | --- ^ non-constant value
+ | |
+ | help: consider using `let` instead of `const`
warning: the feature `impl_trait_in_bindings` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/bindings.rs:1:12