]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/qualif-indirect-mutation-fail.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / qualif-indirect-mutation-fail.stderr
1 error[E0493]: destructors cannot be evaluated at compile-time
2   --> $DIR/qualif-indirect-mutation-fail.rs:9:9
3    |
4 LL |     let mut a: (u32, Option<String>) = (0, None);
5    |         ^^^^^ constant functions cannot evaluate destructors
6
7 error[E0493]: destructors cannot be evaluated at compile-time
8   --> $DIR/qualif-indirect-mutation-fail.rs:15:9
9    |
10 LL |     let mut x = None;
11    |         ^^^^^ constants cannot evaluate destructors
12
13 error[E0493]: destructors cannot be evaluated at compile-time
14   --> $DIR/qualif-indirect-mutation-fail.rs:31:9
15    |
16 LL |     let _z = x;
17    |         ^^ constants cannot evaluate destructors
18
19 error[E0493]: destructors cannot be evaluated at compile-time
20   --> $DIR/qualif-indirect-mutation-fail.rs:36:9
21    |
22 LL |     let x: Option<T> = None;
23    |         ^ constant functions cannot evaluate destructors
24
25 error[E0493]: destructors cannot be evaluated at compile-time
26   --> $DIR/qualif-indirect-mutation-fail.rs:44:9
27    |
28 LL |     let _y = x;
29    |         ^^ constant functions cannot evaluate destructors
30
31 error[E0493]: destructors cannot be evaluated at compile-time
32   --> $DIR/qualif-indirect-mutation-fail.rs:52:9
33    |
34 LL |     let mut y: Option<String> = None;
35    |         ^^^^^ constant functions cannot evaluate destructors
36
37 error[E0493]: destructors cannot be evaluated at compile-time
38   --> $DIR/qualif-indirect-mutation-fail.rs:49:9
39    |
40 LL |     let mut x: Option<String> = None;
41    |         ^^^^^ constant functions cannot evaluate destructors
42
43 error[E0493]: destructors cannot be evaluated at compile-time
44   --> $DIR/qualif-indirect-mutation-fail.rs:62:9
45    |
46 LL |     let y: Option<String> = None;
47    |         ^ constant functions cannot evaluate destructors
48
49 error[E0493]: destructors cannot be evaluated at compile-time
50   --> $DIR/qualif-indirect-mutation-fail.rs:59:9
51    |
52 LL |     let x: Option<String> = None;
53    |         ^ constant functions cannot evaluate destructors
54
55 error: aborting due to 9 previous errors
56
57 For more information about this error, try `rustc --explain E0493`.