diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-06-26 07:50:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-26 07:50:18 +0200 |
| commit | 95332b89187bb6a0c910574cfeff1933b619565a (patch) | |
| tree | 6e1e2c51783a5802e1876f050a7d4b836858104b /tests/ui/pattern | |
| parent | cf22be186c04900414ff4fb6bd98ad6e38fd6cab (diff) | |
| parent | 2a6a42329f79d3c2a42f23ca9fb68aba511a2bc1 (diff) | |
| download | rust-95332b89187bb6a0c910574cfeff1933b619565a.tar.gz rust-95332b89187bb6a0c910574cfeff1933b619565a.zip | |
Rollup merge of #126925 - surechen:fix_125631, r=compiler-errors
Change E0369 to give note informations for foreign items. Change E0369 to give note informations for foreign items. Make it easy for developers to understand why the binop cannot be applied. fixes #125631
Diffstat (limited to 'tests/ui/pattern')
| -rw-r--r-- | tests/ui/pattern/pattern-tyvar-2.stderr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/pattern/pattern-tyvar-2.stderr b/tests/ui/pattern/pattern-tyvar-2.stderr index c6540e79558..be52fa8b239 100644 --- a/tests/ui/pattern/pattern-tyvar-2.stderr +++ b/tests/ui/pattern/pattern-tyvar-2.stderr @@ -5,6 +5,11 @@ LL | fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; | - ^ - {integer} | | | Vec<isize> + | +note: the foreign item type `Vec<isize>` doesn't implement `Mul<{integer}>` + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: not implement `Mul<{integer}>` error: aborting due to 1 previous error |
