| error[E0308]: mismatched types |
| --> $DIR/ref_pat_eat_one_layer_2024_fail.rs:7:17 |
| | |
| LL | if let Some(&mut Some(&_)) = &Some(&Some(0)) { |
| | ^^^^^^^^^^^^^ --------------- this expression has type `&Option<&Option<{integer}>>` |
| | | |
| | expected `Option<{integer}>`, found `&mut _` |
| | |
| = note: expected enum `Option<{integer}>` |
| found mutable reference `&mut _` |
| |
| error[E0308]: mismatched types |
| --> $DIR/ref_pat_eat_one_layer_2024_fail.rs:10:23 |
| | |
| LL | if let Some(&Some(&mut _)) = &Some(&mut Some(0)) { |
| | ^^^^^^ ------------------- this expression has type `&Option<&mut Option<{integer}>>` |
| | | |
| | expected integer, found `&mut _` |
| | |
| = note: expected type `{integer}` |
| found mutable reference `&mut _` |
| |
| error[E0308]: mismatched types |
| --> $DIR/ref_pat_eat_one_layer_2024_fail.rs:14:27 |
| | |
| LL | let _: &mut u32 = x; |
| | -------- ^ types differ in mutability |
| | | |
| | expected due to this |
| | |
| = note: expected mutable reference `&mut u32` |
| found reference `&{integer}` |
| |
| error[E0308]: mismatched types |
| --> $DIR/ref_pat_eat_one_layer_2024_fail.rs:17:23 |
| | |
| LL | if let Some(&Some(&mut _)) = &mut Some(&Some(0)) { |
| | ^^^^^^ ------------------- this expression has type `&mut Option<&Option<{integer}>>` |
| | | |
| | expected integer, found `&mut _` |
| | |
| = note: expected type `{integer}` |
| found mutable reference `&mut _` |
| |
| error[E0308]: mismatched types |
| --> $DIR/ref_pat_eat_one_layer_2024_fail.rs:20:29 |
| | |
| LL | if let Some(&Some(Some((&mut _)))) = &Some(Some(&mut Some(0))) { |
| | ^^^^^^ ------------------------- this expression has type `&Option<Option<&mut Option<{integer}>>>` |
| | | |
| | expected integer, found `&mut _` |
| | |
| = note: expected type `{integer}` |
| found mutable reference `&mut _` |
| |
| error[E0308]: mismatched types |
| --> $DIR/ref_pat_eat_one_layer_2024_fail.rs:23:17 |
| | |
| LL | if let Some(&mut Some(x)) = &Some(Some(0)) { |
| | ^^^^^^^^^^^^ -------------- this expression has type `&Option<Option<{integer}>>` |
| | | |
| | expected `Option<{integer}>`, found `&mut _` |
| | |
| = note: expected enum `Option<{integer}>` |
| found mutable reference `&mut _` |
| |
| error[E0308]: mismatched types |
| --> $DIR/ref_pat_eat_one_layer_2024_fail.rs:26:17 |
| | |
| LL | if let Some(&mut Some(x)) = &Some(Some(0)) { |
| | ^^^^^^^^^^^^ -------------- this expression has type `&Option<Option<{integer}>>` |
| | | |
| | expected `Option<{integer}>`, found `&mut _` |
| | |
| = note: expected enum `Option<{integer}>` |
| found mutable reference `&mut _` |
| |
| error[E0308]: mismatched types |
| --> $DIR/ref_pat_eat_one_layer_2024_fail.rs:30:9 |
| | |
| LL | let &mut _ = &&0; |
| | ^^^^^^ --- this expression has type `&&{integer}` |
| | | |
| | expected integer, found `&mut _` |
| | |
| = note: expected type `{integer}` |
| found mutable reference `&mut _` |
| |
| error[E0308]: mismatched types |
| --> $DIR/ref_pat_eat_one_layer_2024_fail.rs:33:9 |
| | |
| LL | let &mut _ = &&&&&&&&&&&&&&&&&&&&&&&&&&&&0; |
| | ^^^^^^ ----------------------------- this expression has type `&&&&&&&&&&&&&&&&&&&&&&&&&&&&{integer}` |
| | | |
| | expected integer, found `&mut _` |
| | |
| = note: expected type `{integer}` |
| found mutable reference `&mut _` |
| |
| error: aborting due to 9 previous errors |
| |
| For more information about this error, try `rustc --explain E0308`. |