|
| 1 | +error[E0658]: attributes on expressions are experimental |
| 2 | + --> $DIR/capture-enums.rs:16:13 |
| 3 | + | |
| 4 | +LL | 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 | + |
| 10 | +error[E0658]: attributes on expressions are experimental |
| 11 | + --> $DIR/capture-enums.rs:44:13 |
| 12 | + | |
| 13 | +LL | 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 | + |
| 19 | +warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes |
| 20 | + --> $DIR/capture-enums.rs:1:12 |
| 21 | + | |
| 22 | +LL | #![feature(capture_disjoint_fields)] |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + | |
| 25 | + = note: `#[warn(incomplete_features)]` on by default |
| 26 | + = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information |
| 27 | + |
| 28 | +error: Capturing point[] -> ImmBorrow |
| 29 | + --> $DIR/capture-enums.rs:19:41 |
| 30 | + | |
| 31 | +LL | if let Info::Point(_, _, str) = point { |
| 32 | + | ^^^^^ |
| 33 | + |
| 34 | +error: Capturing point[(2, 0)] -> ByValue |
| 35 | + --> $DIR/capture-enums.rs:19:41 |
| 36 | + | |
| 37 | +LL | if let Info::Point(_, _, str) = point { |
| 38 | + | ^^^^^ |
| 39 | + |
| 40 | +error: Capturing meta[] -> ImmBorrow |
| 41 | + --> $DIR/capture-enums.rs:26:35 |
| 42 | + | |
| 43 | +LL | if let Info::Meta(_, v) = meta { |
| 44 | + | ^^^^ |
| 45 | + |
| 46 | +error: Capturing meta[(1, 1)] -> ByValue |
| 47 | + --> $DIR/capture-enums.rs:26:35 |
| 48 | + | |
| 49 | +LL | if let Info::Meta(_, v) = meta { |
| 50 | + | ^^^^ |
| 51 | + |
| 52 | +error: Min Capture point[] -> ByValue |
| 53 | + --> $DIR/capture-enums.rs:19:41 |
| 54 | + | |
| 55 | +LL | if let Info::Point(_, _, str) = point { |
| 56 | + | ^^^^^ |
| 57 | + |
| 58 | +error: Min Capture meta[] -> ByValue |
| 59 | + --> $DIR/capture-enums.rs:26:35 |
| 60 | + | |
| 61 | +LL | if let Info::Meta(_, v) = meta { |
| 62 | + | ^^^^ |
| 63 | + |
| 64 | +error: Capturing point[(2, 0)] -> ByValue |
| 65 | + --> $DIR/capture-enums.rs:47:43 |
| 66 | + | |
| 67 | +LL | let SingleVariant::Point(_, _, str) = point; |
| 68 | + | ^^^^^ |
| 69 | + |
| 70 | +error: Min Capture point[(2, 0)] -> ByValue |
| 71 | + --> $DIR/capture-enums.rs:47:43 |
| 72 | + | |
| 73 | +LL | let SingleVariant::Point(_, _, str) = point; |
| 74 | + | ^^^^^ |
| 75 | + |
| 76 | +error: aborting due to 10 previous errors; 1 warning emitted |
| 77 | + |
| 78 | +For more information about this error, try `rustc --explain E0658`. |
0 commit comments