diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-07 19:13:16 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-04-07 19:43:41 +0300 |
| commit | fd854a772e12ee51c0028e9dbb9443d831e28327 (patch) | |
| tree | b62816c1ea151384c3a7ee80901b95be9a49ef77 /tests/ui/fn | |
| parent | 5c160f511e321a89eef01fcf17c6cc4c0f4e5c00 (diff) | |
| download | rust-fd854a772e12ee51c0028e9dbb9443d831e28327.tar.gz rust-fd854a772e12ee51c0028e9dbb9443d831e28327.zip | |
compiletest: Avoid ignoring empty diagnostics in one more place
This catches some silly notes emitted by rustc, which should ideally be fixed
Diffstat (limited to 'tests/ui/fn')
| -rw-r--r-- | tests/ui/fn/param-mismatch-foreign.rs | 1 | ||||
| -rw-r--r-- | tests/ui/fn/param-mismatch-foreign.stderr | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/fn/param-mismatch-foreign.rs b/tests/ui/fn/param-mismatch-foreign.rs index 2ab2bf95448..eebca29d6c9 100644 --- a/tests/ui/fn/param-mismatch-foreign.rs +++ b/tests/ui/fn/param-mismatch-foreign.rs @@ -1,6 +1,7 @@ extern "C" { fn foo(x: i32, y: u32, z: i32); //~^ NOTE function defined here + //~| NOTE } fn main() { diff --git a/tests/ui/fn/param-mismatch-foreign.stderr b/tests/ui/fn/param-mismatch-foreign.stderr index 835e0a3343e..fff3283cbb6 100644 --- a/tests/ui/fn/param-mismatch-foreign.stderr +++ b/tests/ui/fn/param-mismatch-foreign.stderr @@ -1,5 +1,5 @@ error[E0061]: this function takes 3 arguments but 2 arguments were supplied - --> $DIR/param-mismatch-foreign.rs:7:5 + --> $DIR/param-mismatch-foreign.rs:8:5 | LL | foo(1i32, 2i32); | ^^^ ---- argument #2 of type `u32` is missing |
