1 error[E0658]: let bindings in constants are unstable (see issue #48821)
2 --> $DIR/issue-18118.rs:15:17
7 = help: add #![feature(const_let)] to the crate attributes to enable
9 error[E0658]: statements in constants are unstable (see issue #48821)
10 --> $DIR/issue-18118.rs:15:17
15 = help: add #![feature(const_let)] to the crate attributes to enable
17 error[E0658]: let bindings in constants are unstable (see issue #48821)
18 --> $DIR/issue-18118.rs:18:9
20 LL | &p //~ ERROR `p` does not live long enough
23 = help: add #![feature(const_let)] to the crate attributes to enable
25 error[E0658]: let bindings in constants are unstable (see issue #48821)
26 --> $DIR/issue-18118.rs:12:5
28 LL | / const z: &'static isize = {
29 LL | | //~^ ERROR let bindings in constants are unstable
30 LL | | //~| ERROR statements in constants are unstable
33 LL | | //~^ ERROR let bindings in constants are unstable
37 = help: add #![feature(const_let)] to the crate attributes to enable
39 error[E0658]: statements in constants are unstable (see issue #48821)
40 --> $DIR/issue-18118.rs:12:5
42 LL | / const z: &'static isize = {
43 LL | | //~^ ERROR let bindings in constants are unstable
44 LL | | //~| ERROR statements in constants are unstable
47 LL | | //~^ ERROR let bindings in constants are unstable
51 = help: add #![feature(const_let)] to the crate attributes to enable
53 error[E0597]: `p` does not live long enough
54 --> $DIR/issue-18118.rs:18:10
56 LL | &p //~ ERROR `p` does not live long enough
57 | ^ borrowed value does not live long enough
58 LL | //~^ ERROR let bindings in constants are unstable
60 | - borrowed value only lives until here
62 = note: borrowed value must be valid for the static lifetime...
64 error: aborting due to 6 previous errors
66 Some errors occurred: E0597, E0658.
67 For more information about an error, try `rustc --explain E0597`.