diff options
| author | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-04-29 12:19:55 +0200 |
|---|---|---|
| committer | mejrs <59372212+mejrs@users.noreply.github.com> | 2025-04-29 12:19:55 +0200 |
| commit | fc2cd77e114a651755f39f2d9dc5cec6911f4bd9 (patch) | |
| tree | caaa9919dfc8af2c8fde731ff42caa36b7384fae | |
| parent | 478b3789ce41248db5d6c14ccce48f2634350182 (diff) | |
| download | rust-fc2cd77e114a651755f39f2d9dc5cec6911f4bd9.tar.gz rust-fc2cd77e114a651755f39f2d9dc5cec6911f4bd9.zip | |
Fix comment describing what the test does
| -rw-r--r-- | tests/ui/on-unimplemented/expected-comma-found-token.rs | 7 | ||||
| -rw-r--r-- | tests/ui/on-unimplemented/expected-comma-found-token.stderr | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/tests/ui/on-unimplemented/expected-comma-found-token.rs b/tests/ui/on-unimplemented/expected-comma-found-token.rs index 8fb34f21152..d60ab3341fd 100644 --- a/tests/ui/on-unimplemented/expected-comma-found-token.rs +++ b/tests/ui/on-unimplemented/expected-comma-found-token.rs @@ -1,7 +1,6 @@ -// Tests that two closures cannot simultaneously have mutable -// access to the variable, whether that mutable access be used -// for direct assignment or for taking mutable ref. Issue #6801. +//! Test for invalid MetaItem syntax in the attribute +#![crate_type = "lib"] #![feature(rustc_attrs)] #[rustc_on_unimplemented( @@ -9,5 +8,3 @@ label="the label" //~ ERROR expected `,`, found `label` )] trait T {} - -fn main() { } diff --git a/tests/ui/on-unimplemented/expected-comma-found-token.stderr b/tests/ui/on-unimplemented/expected-comma-found-token.stderr index 7c0874e36a6..2717100a1dc 100644 --- a/tests/ui/on-unimplemented/expected-comma-found-token.stderr +++ b/tests/ui/on-unimplemented/expected-comma-found-token.stderr @@ -1,5 +1,5 @@ error: expected `,`, found `label` - --> $DIR/expected-comma-found-token.rs:9:5 + --> $DIR/expected-comma-found-token.rs:8:5 | LL | message="the message" | - expected `,` |
