diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-05 19:19:56 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-30 10:44:24 +0300 |
| commit | 20faf8532b5ddeb636ba3078344b0cad058c8f8a (patch) | |
| tree | 04512e985a99a3715b4a0829826be7139fdcee09 /tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs | |
| parent | 427288b3ce2d574847fdb41cc3184c893750e09a (diff) | |
| download | rust-20faf8532b5ddeb636ba3078344b0cad058c8f8a.tar.gz rust-20faf8532b5ddeb636ba3078344b0cad058c8f8a.zip | |
compiletest: Make diagnostic kind mandatory on line annotations
Diffstat (limited to 'tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs')
| -rw-r--r-- | tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs b/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs index 51ff641509d..416564d94dc 100644 --- a/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs +++ b/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs @@ -1,6 +1,7 @@ fn main() { let f = |3: isize| println!("hello"); //~^ ERROR refutable pattern in closure argument - //~| `..=2_isize` and `4_isize..` not covered + //~| NOTE `..=2_isize` and `4_isize..` not covered + //~| NOTE the matched value is of type `isize` f(4); } |
