]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/optimization/edge_case.stderr
Rollup merge of #107272 - compiler-errors:new-solver-more-predicates, r=lcnr
[rust.git] / tests / ui / closures / 2229_closure_analysis / optimization / edge_case.stderr
1 error[E0658]: attributes on expressions are experimental
2   --> $DIR/edge_case.rs:20:13
3    |
4 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
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
10 error: First Pass analysis includes:
11   --> $DIR/edge_case.rs:20:39
12    |
13 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
14    |                                       ^^^^^^^^^^^^^^^
15    |
16 note: Capturing m[Deref,(0, 0),Deref,(0, 0)] -> ImmBorrow
17   --> $DIR/edge_case.rs:20:48
18    |
19 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
20    |                                                ^^^^^
21
22 error: Min Capture analysis includes:
23   --> $DIR/edge_case.rs:20:39
24    |
25 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
26    |                                       ^^^^^^^^^^^^^^^
27    |
28 note: Min Capture m[Deref,(0, 0),Deref] -> ImmBorrow
29   --> $DIR/edge_case.rs:20:48
30    |
31 LL |     let c = #[rustc_capture_analysis] || drop(&m.a.0);
32    |                                                ^^^^^
33
34 error: aborting due to 3 previous errors
35
36 For more information about this error, try `rustc --explain E0658`.