diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-19 10:29:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-19 10:29:51 +0100 |
| commit | eac5fb8b0ab8570b8475545f4378cb35481e9fa6 (patch) | |
| tree | 1fb34c1dc6715165572225efa030258937d4355f /src/test/ui/pattern | |
| parent | c605199e89572e586a5f37bc698c48b6a10896fb (diff) | |
| parent | e4abcfbd34f759c33da6f6d7e37235c15ede07c2 (diff) | |
| download | rust-eac5fb8b0ab8570b8475545f4378cb35481e9fa6.tar.gz rust-eac5fb8b0ab8570b8475545f4378cb35481e9fa6.zip | |
Rollup merge of #67189 - LeSeulArtichaut:binop-wording, r=estebank
Unify binop wording Closes #60497 r? @estebank
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/pattern-tyvar-2.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/pattern/pattern-tyvar-2.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/pattern/pattern-tyvar-2.rs b/src/test/ui/pattern/pattern-tyvar-2.rs index 9fba9cb876a..4c6d515b86a 100644 --- a/src/test/ui/pattern/pattern-tyvar-2.rs +++ b/src/test/ui/pattern/pattern-tyvar-2.rs @@ -1,6 +1,6 @@ enum Bar { T1((), Option<Vec<isize>>), T2, } fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; } _ => { panic!(); } } } -//~^ ERROR binary operation `*` cannot be applied to +//~^ ERROR cannot multiply `{integer}` to `std::vec::Vec<isize>` fn main() { } diff --git a/src/test/ui/pattern/pattern-tyvar-2.stderr b/src/test/ui/pattern/pattern-tyvar-2.stderr index 7c6ae499cbb..bb3e61017d4 100644 --- a/src/test/ui/pattern/pattern-tyvar-2.stderr +++ b/src/test/ui/pattern/pattern-tyvar-2.stderr @@ -1,4 +1,4 @@ -error[E0369]: binary operation `*` cannot be applied to type `std::vec::Vec<isize>` +error[E0369]: cannot multiply `{integer}` to `std::vec::Vec<isize>` --> $DIR/pattern-tyvar-2.rs:3:71 | LL | fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; } _ => { panic!(); } } } |
