rust/tests/ui/consts/const-eval/issue-65394.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
765 B
Plaintext
Raw Normal View History

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