2021-01-03 12:46:20 -06:00
|
|
|
error[E0658]: mutable references are not allowed in constants
|
2019-11-13 14:51:16 -06:00
|
|
|
--> $DIR/issue-65394.rs:8:13
|
2019-10-16 20:00:44 -05:00
|
|
|
|
|
|
|
|
LL | let r = &mut x;
|
2021-01-03 12:46:20 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
|
|
|
|
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
|
2019-10-16 20:00:44 -05:00
|
|
|
|
2022-09-23 09:22:36 -05:00
|
|
|
error[E0493]: destructor of `Vec<i32>` cannot be evaluated at compile-time
|
2019-11-13 14:51:16 -06:00
|
|
|
--> $DIR/issue-65394.rs:7:9
|
|
|
|
|
|
|
|
|
LL | let mut x = Vec::<i32>::new();
|
2022-09-23 09:22:36 -05:00
|
|
|
| ^^^^^ the destructor for this type cannot be evaluated in constants
|
2020-06-20 15:38:57 -05:00
|
|
|
...
|
|
|
|
LL | };
|
|
|
|
| - value is dropped here
|
2019-11-13 14:51:16 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-10-16 20:00:44 -05:00
|
|
|
|
2021-01-03 12:46:20 -06:00
|
|
|
Some errors have detailed explanations: E0493, E0658.
|
2020-06-18 14:52:37 -05:00
|
|
|
For more information about an error, try `rustc --explain E0493`.
|