]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-multi-ref.stderr
get rid of __ in field names
[rust.git] / src / test / ui / consts / const-multi-ref.stderr
1 error[E0017]: references in constants may only refer to immutable values
2   --> $DIR/const-multi-ref.rs:6:13
3    |
4 LL |     let p = &mut a;
5    |             ^^^^^^ constants require immutable values
6
7 error[E0492]: cannot borrow a constant which may contain interior mutability, create a static instead
8   --> $DIR/const-multi-ref.rs:16:13
9    |
10 LL |     let p = &a;
11    |             ^^
12
13 error: aborting due to 2 previous errors
14
15 Some errors have detailed explanations: E0017, E0492.
16 For more information about an error, try `rustc --explain E0017`.