diff options
Diffstat (limited to 'tests/ui/suggestions/suggest-deref-in-match-issue-132784.stderr')
| -rw-r--r-- | tests/ui/suggestions/suggest-deref-in-match-issue-132784.stderr | 80 |
1 files changed, 48 insertions, 32 deletions
diff --git a/tests/ui/suggestions/suggest-deref-in-match-issue-132784.stderr b/tests/ui/suggestions/suggest-deref-in-match-issue-132784.stderr index 9338ef19089..54c927b59d4 100644 --- a/tests/ui/suggestions/suggest-deref-in-match-issue-132784.stderr +++ b/tests/ui/suggestions/suggest-deref-in-match-issue-132784.stderr @@ -11,8 +11,9 @@ LL | Some(_) => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match *x { - | ~~ +LL - match x { +LL + match *x { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:9:9 @@ -27,8 +28,9 @@ LL | None => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match *x { - | ~~ +LL - match x { +LL + match *x { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:16:9 @@ -43,8 +45,9 @@ LL | Some(_) => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &*x { - | ~~~ +LL - match &x { +LL + match &*x { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:18:9 @@ -59,8 +62,9 @@ LL | None => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &*x { - | ~~~ +LL - match &x { +LL + match &*x { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:26:9 @@ -75,8 +79,9 @@ LL | Some(_) => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match *y { - | ~~ +LL - match y { +LL + match *y { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:28:9 @@ -91,8 +96,9 @@ LL | None => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match *y { - | ~~ +LL - match y { +LL + match *y { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:36:9 @@ -107,8 +113,9 @@ LL | Some(_) => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match *(z as Arc<Option<i32>>) { - | ~~~~~~~~~~~~~~~~~~~~~~~~ +LL - match z as Arc<Option<i32>> { +LL + match *(z as Arc<Option<i32>>) { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:38:9 @@ -123,8 +130,9 @@ LL | None => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match *(z as Arc<Option<i32>>) { - | ~~~~~~~~~~~~~~~~~~~~~~~~ +LL - match z as Arc<Option<i32>> { +LL + match *(z as Arc<Option<i32>>) { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:46:9 @@ -139,8 +147,9 @@ LL | Some(_) => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &**z_const { - | ~~~~~~~~~~ +LL - match z_const { +LL + match &**z_const { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:48:9 @@ -155,8 +164,9 @@ LL | None => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &**z_const { - | ~~~~~~~~~~ +LL - match z_const { +LL + match &**z_const { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:57:9 @@ -171,8 +181,9 @@ LL | Some(_) => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &**z_mut { - | ~~~~~~~~ +LL - match z_mut { +LL + match &**z_mut { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:59:9 @@ -187,8 +198,9 @@ LL | None => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &**z_mut { - | ~~~~~~~~ +LL - match z_mut { +LL + match &**z_mut { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:68:9 @@ -203,8 +215,9 @@ LL | Some(_) => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &**y_mut { - | ~~~~~~~~ +LL - match y_mut { +LL + match &**y_mut { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:70:9 @@ -219,8 +232,9 @@ LL | None => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &**y_mut { - | ~~~~~~~~ +LL - match y_mut { +LL + match &**y_mut { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:79:9 @@ -235,8 +249,9 @@ LL | Some(_) => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &*difficult { - | ~~~~~~~~~~~ +LL - match (& (&difficult) ) { +LL + match &*difficult { + | error[E0308]: mismatched types --> $DIR/suggest-deref-in-match-issue-132784.rs:81:9 @@ -251,8 +266,9 @@ LL | None => {} found enum `Option<_>` help: consider dereferencing to access the inner value using the Deref trait | -LL | match &*difficult { - | ~~~~~~~~~~~ +LL - match (& (&difficult) ) { +LL + match &*difficult { + | error: aborting due to 16 previous errors |
