summary refs log tree commit diff
path: root/src/test/ui/impl-trait/bindings.stderr
blob: 4da49f4dc7db167fbee93f1f5fa6f7faa6f30709 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
error[E0435]: attempt to use a non-constant value in a constant
  --> $DIR/bindings.rs:5:29
   |
LL |     const foo: impl Clone = x;
   |     ---------               ^ non-constant value
   |     |
   |     help: consider using `let` instead of `const`: `let foo`

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
   |         |
   |         help: consider using `let` instead of `const`: `let foo`

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
   |         |
   |         help: consider using `let` instead of `const`: `let foo`

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
   |         |
   |         help: consider using `let` instead of `const`: `let foo`

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
   |
LL | #![feature(impl_trait_in_bindings)]
   |            ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(incomplete_features)]` on by default
   = note: see issue #63065 <https://github.com/rust-lang/rust/issues/63065> for more information

error: aborting due to 4 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0435`.