2024-12-23 18:38:14 -08:00
|
|
|
error[E0308]: mismatched types
|
2025-01-22 23:59:03 -08:00
|
|
|
--> $DIR/pattern-errors.rs:14:17
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
|
LL | if let Some(&mut x) = &Some(&mut 0) {
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - if let Some(&mut x) = &Some(&mut 0) {
|
|
|
|
|
LL + if let Some(&x) = &Some(&mut 0) {
|
|
|
|
|
|
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2025-01-22 23:59:03 -08:00
|
|
|
--> $DIR/pattern-errors.rs:20:17
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
|
LL | if let Some(&mut Some(&x)) = &Some(&mut Some(0)) {
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - if let Some(&mut Some(&x)) = &Some(&mut Some(0)) {
|
|
|
|
|
LL + if let Some(&Some(&x)) = &Some(&mut Some(0)) {
|
|
|
|
|
|
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2025-01-22 23:59:03 -08:00
|
|
|
--> $DIR/pattern-errors.rs:26:22
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
|
LL | if let Some(Some(&mut x)) = &Some(Some(&mut 0)) {
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - if let Some(Some(&mut x)) = &Some(Some(&mut 0)) {
|
|
|
|
|
LL + if let Some(Some(&x)) = &Some(Some(&mut 0)) {
|
|
|
|
|
|
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2025-01-22 23:59:03 -08:00
|
|
|
--> $DIR/pattern-errors.rs:33:17
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
|
LL | if let Some(&mut Some(&_)) = &Some(&Some(0)) {
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - if let Some(&mut Some(&_)) = &Some(&Some(0)) {
|
|
|
|
|
LL + if let Some(&Some(&_)) = &Some(&Some(0)) {
|
|
|
|
|
|
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2025-01-22 23:59:03 -08:00
|
|
|
--> $DIR/pattern-errors.rs:45:23
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
|
LL | if let Some(&Some(&mut _)) = &mut Some(&Some(0)) {
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - if let Some(&Some(&mut _)) = &mut Some(&Some(0)) {
|
|
|
|
|
LL + if let Some(&Some(&_)) = &mut Some(&Some(0)) {
|
|
|
|
|
|
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2025-01-25 23:32:12 -08:00
|
|
|
--> $DIR/pattern-errors.rs:56:17
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
|
LL | if let Some(&mut Some(x)) = &Some(Some(0)) {
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - if let Some(&mut Some(x)) = &Some(Some(0)) {
|
|
|
|
|
LL + if let Some(&Some(x)) = &Some(Some(0)) {
|
|
|
|
|
|
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2025-01-25 23:32:12 -08:00
|
|
|
--> $DIR/pattern-errors.rs:158:10
|
2025-01-04 01:38:17 -08:00
|
|
|
|
|
|
|
|
|
LL | let [&mut x] = &[&mut 0];
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let [&mut x] = &[&mut 0];
|
|
|
|
|
LL + let [&x] = &[&mut 0];
|
|
|
|
|
|
|
2025-01-04 01:38:17 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2025-01-25 23:32:12 -08:00
|
|
|
--> $DIR/pattern-errors.rs:164:10
|
2025-01-04 01:38:17 -08:00
|
|
|
|
|
|
|
|
|
LL | let [&mut &x] = &[&mut 0];
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let [&mut &x] = &[&mut 0];
|
|
|
|
|
LL + let [&&x] = &[&mut 0];
|
|
|
|
|
|
|
2025-01-04 01:38:17 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2025-01-25 23:32:12 -08:00
|
|
|
--> $DIR/pattern-errors.rs:170:10
|
2025-01-04 01:38:17 -08:00
|
|
|
|
|
|
|
|
|
LL | let [&mut &ref x] = &[&mut 0];
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let [&mut &ref x] = &[&mut 0];
|
|
|
|
|
LL + let [&&ref x] = &[&mut 0];
|
|
|
|
|
|
|
2025-01-04 01:38:17 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2025-01-25 23:32:12 -08:00
|
|
|
--> $DIR/pattern-errors.rs:176:10
|
2025-01-04 01:38:17 -08:00
|
|
|
|
|
|
|
|
|
LL | let [&mut &(mut x)] = &[&mut 0];
|
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: cannot match inherited `&` with `&mut` pattern
|
|
|
|
|
help: replace this `&mut` pattern with `&`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let [&mut &(mut x)] = &[&mut 0];
|
|
|
|
|
LL + let [&&(mut x)] = &[&mut 0];
|
|
|
|
|
|
|
2025-01-04 01:38:17 -08:00
|
|
|
|
2025-01-21 01:09:55 -08:00
|
|
|
error: aborting due to 10 previous errors
|
2024-12-23 18:38:14 -08:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|