]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/qualif-indirect-mutation-fail.stderr
Rollup merge of #106951 - tmiasko:rm-simplify-initial, r=oli-obk
[rust.git] / tests / ui / consts / qualif-indirect-mutation-fail.stderr
1 error[E0493]: destructor of `(u32, Option<String>)` 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    |         ^^^^^ the destructor for this type cannot be evaluated in constant functions
6
7 error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
8   --> $DIR/qualif-indirect-mutation-fail.rs:15:9
9    |
10 LL |     let mut x = None;
11    |         ^^^^^ the destructor for this type cannot be evaluated in constants
12
13 error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
14   --> $DIR/qualif-indirect-mutation-fail.rs:31:9
15    |
16 LL |     let _z = x;
17    |         ^^ the destructor for this type cannot be evaluated in constants
18
19 error[E0493]: destructor of `Option<T>` cannot be evaluated at compile-time
20   --> $DIR/qualif-indirect-mutation-fail.rs:36:9
21    |
22 LL |     let x: Option<T> = None;
23    |         ^ the destructor for this type cannot be evaluated in constant functions
24
25 error[E0493]: destructor of `Option<T>` cannot be evaluated at compile-time
26   --> $DIR/qualif-indirect-mutation-fail.rs:44:9
27    |
28 LL |     let _y = x;
29    |         ^^ the destructor for this type cannot be evaluated in constant functions
30
31 error[E0493]: destructor of `Option<String>` 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    |         ^^^^^ the destructor for this type cannot be evaluated in constant functions
36
37 error[E0493]: destructor of `Option<String>` 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    |         ^^^^^ the destructor for this type cannot be evaluated in constant functions
42
43 error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
44   --> $DIR/qualif-indirect-mutation-fail.rs:62:9
45    |
46 LL |     let y: Option<String> = None;
47    |         ^ the destructor for this type cannot be evaluated in constant functions
48
49 error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
50   --> $DIR/qualif-indirect-mutation-fail.rs:59:9
51    |
52 LL |     let x: Option<String> = None;
53    |         ^ the destructor for this type cannot be evaluated in constant functions
54
55 error: aborting due to 9 previous errors
56
57 For more information about this error, try `rustc --explain E0493`.