]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/bindings.stderr
Auto merge of #80790 - JohnTitor:rollup-js1noez, r=JohnTitor
[rust.git] / src / test / ui / impl-trait / bindings.stderr
1 error[E0435]: attempt to use a non-constant value in a constant
2   --> $DIR/bindings.rs:5:29
3    |
4 LL |     const foo: impl Clone = x;
5    |           ---               ^ non-constant value
6    |           |
7    |           help: consider using `let` instead of `const`
8
9 error[E0435]: attempt to use a non-constant value in a constant
10   --> $DIR/bindings.rs:11:33
11    |
12 LL |         const foo: impl Clone = x;
13    |               ---               ^ non-constant value
14    |               |
15    |               help: consider using `let` instead of `const`
16
17 error[E0435]: attempt to use a non-constant value in a constant
18   --> $DIR/bindings.rs:18:33
19    |
20 LL |         const foo: impl Clone = x;
21    |               ---               ^ non-constant value
22    |               |
23    |               help: consider using `let` instead of `const`
24
25 error[E0435]: attempt to use a non-constant value in a constant
26   --> $DIR/bindings.rs:25:33
27    |
28 LL |         const foo: impl Clone = x;
29    |               ---               ^ non-constant value
30    |               |
31    |               help: consider using `let` instead of `const`
32
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
35    |
36 LL | #![feature(impl_trait_in_bindings)]
37    |            ^^^^^^^^^^^^^^^^^^^^^^
38    |
39    = note: `#[warn(incomplete_features)]` on by default
40    = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information
41
42 error: aborting due to 4 previous errors; 1 warning emitted
43
44 For more information about this error, try `rustc --explain E0435`.