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