1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/unsafe_ptr.rs:26: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:46: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 warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
20 --> $DIR/unsafe_ptr.rs:4:12
22 LL | #![feature(capture_disjoint_fields)]
23 | ^^^^^^^^^^^^^^^^^^^^^^^
25 = note: `#[warn(incomplete_features)]` on by default
26 = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
28 error: First Pass analysis includes:
29 --> $DIR/unsafe_ptr.rs:29:6
34 LL | | println!("{:?}", (*t.0).s);
40 note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
41 --> $DIR/unsafe_ptr.rs:32:26
43 LL | println!("{:?}", (*t.0).s);
46 error: Min Capture analysis includes:
47 --> $DIR/unsafe_ptr.rs:29:6
52 LL | | println!("{:?}", (*t.0).s);
58 note: Min Capture t[(0, 0)] -> ImmBorrow
59 --> $DIR/unsafe_ptr.rs:32:26
61 LL | println!("{:?}", (*t.0).s);
64 error: First Pass analysis includes:
65 --> $DIR/unsafe_ptr.rs:49:5
70 LL | | let x = unsafe { &mut (*p).s };
72 LL | | *x = "s".into();
76 note: Capturing p[Deref,(0, 0)] -> ImmBorrow
77 --> $DIR/unsafe_ptr.rs:52:31
79 LL | let x = unsafe { &mut (*p).s };
82 error: Min Capture analysis includes:
83 --> $DIR/unsafe_ptr.rs:49:5
88 LL | | let x = unsafe { &mut (*p).s };
90 LL | | *x = "s".into();
94 note: Min Capture p[] -> ImmBorrow
95 --> $DIR/unsafe_ptr.rs:52:31
97 LL | let x = unsafe { &mut (*p).s };
100 error: aborting due to 6 previous errors; 1 warning emitted
102 For more information about this error, try `rustc --explain E0658`.