2021-01-03 18:46:20 +00:00
|
|
|
error[E0658]: mutable references are not allowed in constants
|
2019-11-13 12:51:16 -08:00
|
|
|
--> $DIR/issue-65394.rs:8:13
|
2019-10-16 18:00:44 -07:00
|
|
|
|
|
|
|
|
LL | let r = &mut x;
|
2021-01-03 18:46:20 +00: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 18:00:44 -07:00
|
|
|
|
2022-09-23 14:22:36 +00:00
|
|
|
error[E0493]: destructor of `Vec<i32>` cannot be evaluated at compile-time
|
2019-11-13 12:51:16 -08:00
|
|
|
--> $DIR/issue-65394.rs:7:9
|
|
|
|
|
|
|
|
|
LL | let mut x = Vec::<i32>::new();
|
2022-09-23 14:22:36 +00:00
|
|
|
| ^^^^^ the destructor for this type cannot be evaluated in constants
|
2020-06-20 20:38:57 +00:00
|
|
|
...
|
|
|
|
LL | };
|
|
|
|
| - value is dropped here
|
2019-11-13 12:51:16 -08:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-10-16 18:00:44 -07:00
|
|
|
|
2021-01-03 18:46:20 +00: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`.
|