1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/unsafe_ptr.rs:25:13
4 LL | let c = #[rustc_capture_analysis]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
8 = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
10 error[E0658]: attributes on expressions are experimental
11 --> $DIR/unsafe_ptr.rs:45:13
13 LL | let c = #[rustc_capture_analysis]
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
17 = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
19 error: First Pass analysis includes:
20 --> $DIR/unsafe_ptr.rs:28:6
25 LL | | println!("{:?}", (*t.0).s);
31 note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
32 --> $DIR/unsafe_ptr.rs:31:26
34 LL | println!("{:?}", (*t.0).s);
37 error: Min Capture analysis includes:
38 --> $DIR/unsafe_ptr.rs:28:6
43 LL | | println!("{:?}", (*t.0).s);
49 note: Min Capture t[(0, 0)] -> ImmBorrow
50 --> $DIR/unsafe_ptr.rs:31:26
52 LL | println!("{:?}", (*t.0).s);
55 error: First Pass analysis includes:
56 --> $DIR/unsafe_ptr.rs:48:5
61 LL | | let x = unsafe { &mut (*p).s };
63 LL | | *x = "s".into();
67 note: Capturing p[Deref,(0, 0)] -> ImmBorrow
68 --> $DIR/unsafe_ptr.rs:51:31
70 LL | let x = unsafe { &mut (*p).s };
73 error: Min Capture analysis includes:
74 --> $DIR/unsafe_ptr.rs:48:5
79 LL | | let x = unsafe { &mut (*p).s };
81 LL | | *x = "s".into();
85 note: Min Capture p[] -> ImmBorrow
86 --> $DIR/unsafe_ptr.rs:51:31
88 LL | let x = unsafe { &mut (*p).s };
91 error: aborting due to 6 previous errors
93 For more information about this error, try `rustc --explain E0658`.