diff options
Diffstat (limited to 'tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/pattern-errors.structural2024.stderr')
| -rw-r--r-- | tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/pattern-errors.structural2024.stderr | 85 |
1 files changed, 51 insertions, 34 deletions
diff --git a/tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/pattern-errors.structural2024.stderr b/tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/pattern-errors.structural2024.stderr index 861ed2216cd..fdf48a5a71b 100644 --- a/tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/pattern-errors.structural2024.stderr +++ b/tests/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/pattern-errors.structural2024.stderr @@ -7,8 +7,9 @@ LL | if let Some(&mut Some(&_)) = &Some(&Some(0)) { = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | if let Some(&Some(&_)) = &Some(&Some(0)) { - | ~ +LL - if let Some(&mut Some(&_)) = &Some(&Some(0)) { +LL + if let Some(&Some(&_)) = &Some(&Some(0)) { + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:36:23 @@ -19,8 +20,9 @@ LL | if let Some(&Some(&mut _)) = &Some(&mut Some(0)) { = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | if let Some(&Some(&_)) = &Some(&mut Some(0)) { - | ~ +LL - if let Some(&Some(&mut _)) = &Some(&mut Some(0)) { +LL + if let Some(&Some(&_)) = &Some(&mut Some(0)) { + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:41:23 @@ -31,8 +33,9 @@ LL | if let Some(&Some(&mut _)) = &mut Some(&Some(0)) { = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | if let Some(&Some(&_)) = &mut Some(&Some(0)) { - | ~ +LL - if let Some(&Some(&mut _)) = &mut Some(&Some(0)) { +LL + if let Some(&Some(&_)) = &mut Some(&Some(0)) { + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:46:28 @@ -43,8 +46,9 @@ LL | if let Some(&Some(Some(&mut _))) = &Some(Some(&mut Some(0))) { = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | if let Some(&Some(Some(&_))) = &Some(Some(&mut Some(0))) { - | ~ +LL - if let Some(&Some(Some(&mut _))) = &Some(Some(&mut Some(0))) { +LL + if let Some(&Some(Some(&_))) = &Some(Some(&mut Some(0))) { + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:51:17 @@ -55,8 +59,9 @@ LL | if let Some(&mut Some(x)) = &Some(Some(0)) { = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | if let Some(&Some(x)) = &Some(Some(0)) { - | ~ +LL - if let Some(&mut Some(x)) = &Some(Some(0)) { +LL + if let Some(&Some(x)) = &Some(Some(0)) { + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:59:11 @@ -67,8 +72,9 @@ LL | let &[&mut x] = &&mut [0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let &[&x] = &&mut [0]; - | ~ +LL - let &[&mut x] = &&mut [0]; +LL + let &[&x] = &&mut [0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:65:11 @@ -79,8 +85,9 @@ LL | let &[&mut x] = &mut &mut [0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let &[&x] = &mut &mut [0]; - | ~ +LL - let &[&mut x] = &mut &mut [0]; +LL + let &[&x] = &mut &mut [0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:71:11 @@ -91,8 +98,9 @@ LL | let &[&mut ref x] = &&mut [0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let &[&ref x] = &&mut [0]; - | ~ +LL - let &[&mut ref x] = &&mut [0]; +LL + let &[&ref x] = &&mut [0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:77:11 @@ -103,8 +111,9 @@ LL | let &[&mut ref x] = &mut &mut [0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let &[&ref x] = &mut &mut [0]; - | ~ +LL - let &[&mut ref x] = &mut &mut [0]; +LL + let &[&ref x] = &mut &mut [0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:83:11 @@ -115,8 +124,9 @@ LL | let &[&mut mut x] = &&mut [0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let &[&mut x] = &&mut [0]; - | ~ +LL - let &[&mut mut x] = &&mut [0]; +LL + let &[&mut x] = &&mut [0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:89:11 @@ -127,8 +137,9 @@ LL | let &[&mut mut x] = &mut &mut [0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let &[&mut x] = &mut &mut [0]; - | ~ +LL - let &[&mut mut x] = &mut &mut [0]; +LL + let &[&mut x] = &mut &mut [0]; + | error[E0658]: binding cannot be both mutable and by-reference --> $DIR/pattern-errors.rs:97:12 @@ -159,8 +170,9 @@ LL | let [&&mut x] = &[&mut 0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let [&&x] = &[&mut 0]; - | ~ +LL - let [&&mut x] = &[&mut 0]; +LL + let [&&x] = &[&mut 0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:115:11 @@ -171,8 +183,9 @@ LL | let [&&mut x] = &mut [&mut 0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let [&&x] = &mut [&mut 0]; - | ~ +LL - let [&&mut x] = &mut [&mut 0]; +LL + let [&&x] = &mut [&mut 0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:121:11 @@ -183,8 +196,9 @@ LL | let [&&mut ref x] = &[&mut 0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let [&&ref x] = &[&mut 0]; - | ~ +LL - let [&&mut ref x] = &[&mut 0]; +LL + let [&&ref x] = &[&mut 0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:127:11 @@ -195,8 +209,9 @@ LL | let [&&mut ref x] = &mut [&mut 0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let [&&ref x] = &mut [&mut 0]; - | ~ +LL - let [&&mut ref x] = &mut [&mut 0]; +LL + let [&&ref x] = &mut [&mut 0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:133:11 @@ -207,8 +222,9 @@ LL | let [&&mut mut x] = &[&mut 0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let [&&mut x] = &[&mut 0]; - | ~ +LL - let [&&mut mut x] = &[&mut 0]; +LL + let [&&mut x] = &[&mut 0]; + | error[E0308]: mismatched types --> $DIR/pattern-errors.rs:139:11 @@ -219,8 +235,9 @@ LL | let [&&mut mut x] = &mut [&mut 0]; = note: cannot match inherited `&` with `&mut` pattern help: replace this `&mut` pattern with `&` | -LL | let [&&mut x] = &mut [&mut 0]; - | ~ +LL - let [&&mut mut x] = &mut [&mut 0]; +LL + let [&&mut x] = &mut [&mut 0]; + | error: aborting due to 19 previous errors |
