fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: attributes on expressions are experimental 2 --> $DIR/unsafe_ptr.rs:25:13 3 | 4LL | let c = #[rustc_capture_analysis] 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 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 9 10error[E0658]: attributes on expressions are experimental 11 --> $DIR/unsafe_ptr.rs:45:13 12 | 13LL | let c = #[rustc_capture_analysis] 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | 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 18 19error: First Pass analysis includes: 20 --> $DIR/unsafe_ptr.rs:28:6 21 | 22LL | / || unsafe { 23LL | | 24LL | | 25LL | | println!("{:?}", (*t.0).s); 26LL | | 27LL | | 28LL | | }; 29 | |_____^ 30 | 31note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow 32 --> $DIR/unsafe_ptr.rs:31:26 33 | 34LL | println!("{:?}", (*t.0).s); 35 | ^^^^^^^^ 36 37error: Min Capture analysis includes: 38 --> $DIR/unsafe_ptr.rs:28:6 39 | 40LL | / || unsafe { 41LL | | 42LL | | 43LL | | println!("{:?}", (*t.0).s); 44LL | | 45LL | | 46LL | | }; 47 | |_____^ 48 | 49note: Min Capture t[(0, 0)] -> ImmBorrow 50 --> $DIR/unsafe_ptr.rs:31:26 51 | 52LL | println!("{:?}", (*t.0).s); 53 | ^^^^^^^^ 54 55error: First Pass analysis includes: 56 --> $DIR/unsafe_ptr.rs:48:5 57 | 58LL | / || { 59LL | | 60LL | | 61LL | | let x = unsafe { &mut (*p).s }; 62... | 63LL | | *x = "s".into(); 64LL | | }; 65 | |_____^ 66 | 67note: Capturing p[Deref,(0, 0)] -> ImmBorrow 68 --> $DIR/unsafe_ptr.rs:51:31 69 | 70LL | let x = unsafe { &mut (*p).s }; 71 | ^^^^^^ 72 73error: Min Capture analysis includes: 74 --> $DIR/unsafe_ptr.rs:48:5 75 | 76LL | / || { 77LL | | 78LL | | 79LL | | let x = unsafe { &mut (*p).s }; 80... | 81LL | | *x = "s".into(); 82LL | | }; 83 | |_____^ 84 | 85note: Min Capture p[] -> ImmBorrow 86 --> $DIR/unsafe_ptr.rs:51:31 87 | 88LL | let x = unsafe { &mut (*p).s }; 89 | ^^^^^^ 90 91error: aborting due to 6 previous errors 92 93For more information about this error, try `rustc --explain E0658`.